python-pause icon indicating copy to clipboard operation
python-pause copied to clipboard

Add typing

Open KianKhadempour opened this issue 1 year ago • 1 comments

Currently pause does not have types. This makes static type-checkers like mypy complain whenever you use it and makes it slightly less convenient to use the package with editors and IDEs that show you what types a function expects and returns.

This PR fixes that by adding both typing to the original __init__.py file and test_pause.py as well as adding py.typed into each directory for editors and IDEs to use. It also updates setup.py to include those files in the package and removes a redundant import math in test_pause.py.

KianKhadempour avatar Jun 29 '23 09:06 KianKhadempour

I'm not 100% sure if I updated setup.py correctly so if you could take a look at that it would be much appreciated. The main thing I'm not sure about is if include_package_data should be set to True.

KianKhadempour avatar Jun 29 '23 09:06 KianKhadempour