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
I installed the mypy-plugin.jar on PyCharm 2018.1, and I am trying to run mypy on some python 2.7 code with the 2.7 interpreter and PATH suffix configured correctly.
test_api:95: error: Missing parentheses in call to 'print'. Did you mean print(out, err)?
This appears to be a python3 error.
Appears that the'py2'option is not being honored. I know this because running the same from command line using the option gives me different warnings (specific to python 2.7).
Thanks for reporting! This looks a bit strange, your command should always fail because currently daemon must be started with either --follow-import=skip or --follow-imports=error. Have you tried your exact command in the terminal and/or the command with correct import flags in the plugin?
I installed the mypy-plugin.jar on PyCharm 2018.1, and I am trying to run
mypy
on some python 2.7 code with the 2.7 interpreter and PATH suffix configured correctly.dmypy start -- --python-version=2.7; dmypy check test_api.py
or
dmypy start -- --py2; dmypy check test_api.py
I see this:
This appears to be a python3 error.
Appears that the
'py2'
option is not being honored. I know this because running the same from command line using the option gives me different warnings (specific to python 2.7).E.g.,
mypy --py2 --ignore-missing-imports test_api.py
Has anyone tried this? It is easily reproducible. Am I missing something here?
The text was updated successfully, but these errors were encountered: