pythonpycharmpython-3.6python-typing

Turn off 'Python version 3.5 does not support variable annotations' error message


I just updated PyCharm to the latest version and I've been having trouble with this error message. Basically, I can't turn off the error message that says "Python version 3.5 does not support variable annotations."

My default and project interpreter is Python 3.6, and I don't even have Python 3.5 added in PyCharm, so any help with this would be much appreciated.

Some pictures:

Picture of Pycharm IDE - Python version 3.5 does not support variable annotations

Picture of Pycharm IDE - Project Interpreter settings menu

Edit: Updated with one more picture of the Project Interpreter settings:

enter image description here


Solution

  • Thanks to @user2235698, I fixed the issue by removing my project interpreter and re-adding it to Pycharm.

    Ubuntu did an update which changed my Python 3 version from 3.6 to 3.5, but Pycharm didn't realize it was changed. Updating the interpreter directory from /usr/bin/python3 to /usr/bin/python3.6 fixed things.

    Thanks again everyone! Marking this as solved.