Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add type hints to codebase #6742
Hello, as discussed via Slack and google group, I'm hoping to set us up with type hints in our codebase (PEP 484). I led a similar project while at Foursquare, and think the scope is achievable.
This wouldn't start until we finish the Python 3 port (#6062).
Why type hints
This issue does not entail 100% type coverage.
Incremental type safety
Rather than trying to rewrite our entire codebase at once, we'd take a more incremental approach. Core code would be ported so that any dependee has some level of type safety. Over time, we would expect any new code and refactored code to have type hints, leading to an incremental increase in coverage.
This is the approach taken by most organizations, including Foursquare and Dropbox (author of MyPy).
This was referenced
Dec 12, 2018
We should absolutely figure out how to represent type hints such as