-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type hints!!! #90
Comments
$
|
I can implement type hints. Will begin work later tonight and send a PR when ready |
AFAIK there is no way to implement type hints throughout the entire project and still maintain Python 2.6+ compatibility. The issue comes down to having non-literal types (lists, tuples). There is probably a way to make it work, but not cleanly. I also had not realized that when I made my PR that the typing module was introduced in Python 3.5, so that would break compatibility for older Python 3 versions if used. |
Python 2 died 922 days ago on 1/1/2020 so I think it is time to move on... So we can show some progress. |
You can also provide type hints in |
The project’s name is |
https://kishstats.com/python/2019/01/07/python-type-hinting.html
https://docs.python.org/3/library/typing.html
The text was updated successfully, but these errors were encountered: