Type hints in Python 3.5 project shown as syntax error when opening 2.7 project in another window.

Answered

I have one project with Python 3.5 as project SDK. This project is using type hints.

When I open another project with Python 2.7 as project SDK in another window the type hints in the first project, the one with Python 3.5 as project SDK, are marked as syntax errors.

If I close and reopen the Python 3.5 project the type hints are not shown as errors anymore.

0

Please sign in to leave a comment.