-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Add type hints #1510
Comments
Seems reasonable, though Python 2 compatibility might be tough. I haven't used tools that leverage type annotations myself, so I'm not quite sure what to expect. As long as the implementation doesn't raise the bar too much for new contributors, it should be worthwhile. |
Well, current Python 2 implementations use either decorators, or comments for annotations. |
bump I presume this is less intimidating now since Python 2 support was dropped in v18.0.0? Also want to call out progress over here: Happy to help if we want to try and get this done 😁 @webknjaz could you maybe change the issue title to "Add type hints"? 🙏🏻 |
I changed the issue title. Although, I think the old one was just fine... In case of Cheroot, we've gone the way of type stubs which are But realistically, Python 2 has been dead for 4 years so we shouldn't need to care about it anymore. @davetapley feel free to start with adding MyPy to Please, make small PRs since it's easier to review and comprehend tiny bits of text/diffs. Also, don't turn all toggles on together in one PR. Incremental changes work best. I'll be judging the acceptance of PRs by whether the As a future bonus, we may consider running other type checkers to cover more corner cases. |
Hi,
I think for such project as a framework it's a must to incorporate all available tools helping to keep the codebase healthy.
Today I'm thinking about using type hinting natively available in Python 3.5/3.6 (PEP-3107/PEP-526/PEP-484) and available for old Python versions via various backports/mypy etc.
@jaraco do you think we could do this?
The text was updated successfully, but these errors were encountered: