[3.10] Match formatting does not support multiple value #2637
Labels
C: parser
How we parse code. Or fail to parse it.
C: target version
Related to --target-version, e.g. autodetection
T: bug
Something isn't working
Hello and thanks for this library and the reactivity to support python 3.10 new syntaxes.
Describe the bug
While running with the latest version (gotten from git),basic
match
on a single pattern is correctly supported <3But it seems that it does not support multiple match value.
I tried on a simple example after observing it on my real code:
To Reproduce
Should be able to parse. It runs correctly:
But black fails :'(
black --target-version py310 test_black.py error: cannot format test_black.py: Cannot parse: 4:6: match a, b: Oh no! 💥 💔 💥 1 file failed to reformat.
Expected behavior
Should format without errors
Environment
Additional context
The text was updated successfully, but these errors were encountered: