PyCQA / baron

IDE allow you to refactor code, Baron allows you to write refactoring code.
http://baron.pycqa.org
GNU Lesser General Public License v3.0
289 stars 50 forks source link

method/function parameter type hint throws ParsingError #135

Closed MarcelTon closed 6 years ago

MarcelTon commented 6 years ago

When using: def method(self, paramater: str)

This throws: The token COLON should be one of those: COMMA, DOUBLE_STAR, LEFT_PARENTHESIS, NAME, RIGHT_PARENTHESIS, STAR

But should be accepted as designed by: https://www.python.org/dev/peps/pep-0484/

MarcelTon commented 6 years ago

Duplicate with #127