atg / chocolat-public

Public bug tracker for the private chocolat project
http://chocolatapp.com
182 stars 4 forks source link

3.3.4 python3 syntax checking error using functional annotations #1805

Open jay-berringer opened 7 years ago

jay-berringer commented 7 years ago

"def some_function(argument:str) -> list:" throws a syntax error if the return type is used (e.g. "-> list:") All checking stops at this point. However, this is valid python3 syntax.

There is no workaround other than using an different editor (Chocolat is the only one that I've tried that throws this error).

ghost commented 6 years ago

+1, chocolat will also not recognize the following contents correctly if I have type annotations in my function. Like this:

screen shot 2017-08-30 at 12 14 47 pm

However if I remove type annotation it behaves correctly:

screen shot 2017-08-30 at 12 15 23 pm

By the way, this is how visual-studio-code behaves and is what I wish:

screen shot 2017-08-30 at 12 17 57 pm