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
This is because it tries multiple grammars in parsing.py. I added some print statements:
(black) jelle@mbpt-root black % black -t py310 t.py
try <blib2to3.pgen2.grammar.Grammar object at 0x103180d30>
Cannot parse: 9:15: case z := u:
try <blib2to3.pgen2.grammar.Grammar object at 0x103180cd0>
Cannot parse: 2:10: match something:
error: cannot format t.py: Cannot parse: 2:10: match something:
I think it shouldn't try other grammars if we're in -t py310 mode.
Currently it only throws the error on the first-seen node (?):
The text was updated successfully, but these errors were encountered: