python-pause
python-pause copied to clipboard
Add typing
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
.
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.