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
Point the bare '<>' ExpectedExpression diagnostic at its start
ruff's parser reports the error at the unexpected '>' (one past '<>'s
start); CPython's tokenizer treats '<>' as a single obsolete token and
points at its start instead. Detect the '<' immediately preceding the
ExpectedExpression location and shift the reported range back over it,
ahead of the generic ExpectedExpression -> 'invalid syntax' collapse.
0 commit comments