Mypy: Automatic conversion of type annotations

Created on 2 Dec 2017  路  2Comments  路  Source: python/mypy

When existing code (compatible with Py2/3) drops support for Python 2, it would be nice to have mypy automatically convert old-style annotations to new-style annotations (with an optional flag). This would literally be moving the typing tokens into the functions.

Or maybe this should go into a separate tool?

Most helpful comment

All 2 comments

Nice!

Was this page helpful?
0 / 5 - 0 ratings