PyCharm 2017.2 did't support PEP484?

Answered

I've upgrade my PyCharm to 2017.2.1 

PyCharm 2017.2.1
Build #PY-172.3544.46, built on August 9, 2017
Licensed to ********
Subscription is active until December 20, 2017
JRE: 1.8.0_152-release-915-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6

There's some codes which is PEP484 based like this:

def a(name: str) -> int:
return len(name)

PyCharm 2017.1 didn't show me any error, after upgrade I have imported my settings to 2017.2

but 2017.2 shows:

 

Is this a problem of my configuration?

0
3 comments

Hi Songhao, please check your project interpreter version. Looks like your Python version doesn't support pep484 syntax.

0
Avatar
Permanently deleted user

Hi Pavel

There's python3.6 interpreter I have configured from my project's virtualenv

and it's working well on version 2017.1 and supported pep484 I think

0
Avatar
Permanently deleted user

Oh I've find out my problem

There's debug configuration and interpreter configuration

I've configured the debug conf but missed interpreter configuration

The real interpreter configuration was wrong

 

Thank you for your answer, it's all my fault

0

Please sign in to leave a comment.