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
Thanks for reporting this. Yes, this is a known limitation. Any Python 3-only syntax will fail to run on Python 2; importing future cannot help with this because Python won't even attempt to run code that generates a SyntaxError.
The futurize script could potentially convert function annotations into the following syntax, which is compatible with both Py2 and Py3 (using your example)::
I just tried future on a python3 program and it fails on python3 functions annotations (http://www.python.org/dev/peps/pep-3107/) :
I'm not sure if there is a way to fix this.
The text was updated successfully, but these errors were encountered: