Open jay-berringer opened 7 years ago
+1, chocolat will also not recognize the following contents correctly if I have type annotations in my function. Like this:
However if I remove type annotation it behaves correctly:
By the way, this is how visual-studio-code behaves and is what I wish:
"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).