You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I ran into a problem where Baron interprets the "-" in the "->" of a function's return annotation as a minus instead of as part of an arrow.
def foo() -> int: return 3
baron.parser.ParsingError: Error, got an unexpected token MINUS here:
1 def foo() -<---- here
The token MINUS should be one of those: COLON
Very cool project by the way; would be nice to use something like RB in combination with support for annotations to enable some proper static analysis of functions, maybe even hijack some ideas from Haskell.
The text was updated successfully, but these errors were encountered:
Hi guys, I ran into a problem where Baron interprets the "-" in the "->" of a function's return annotation as a minus instead of as part of an arrow.
def foo() -> int: return 3
baron.parser.ParsingError: Error, got an unexpected token MINUS here:
1 def foo() -<---- here
The token MINUS should be one of those: COLON
Very cool project by the way; would be nice to use something like RB in combination with support for annotations to enable some proper static analysis of functions, maybe even hijack some ideas from Haskell.
The text was updated successfully, but these errors were encountered: