You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add type hints (see PEP484) and static type checking to Travis CI using mypy.
however, the question is whether we want to use the full type-hinting syntax (and maybe lose compatibility with older python versions) or just the type-hinting via comments. e.g.,
Add type hints (see PEP484) and static type checking to Travis CI using mypy.
vs.
Any thoughts?
UPDATE:
As Daniel Moisset from machinalis pointed out, a Python 2.x compatible alternative to the first scenario above would be:
or for longer parameter lists:
which would be the best option for now imho.
Also see his awesome blog post for more info on using mypy: http://www.machinalis.com/blog/a-day-with-mypy-part-1/
The text was updated successfully, but these errors were encountered: