We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.g:
(.venv) (3.9.5) [ 6:51ÖS ] [ isidentical@msi:~ ] $ cat t.py 122ms match x, *something: case _: pass (.venv) (3.9.5) [ 6:51ÖS ] [ isidentical@msi:~ ] $ black -tpy310 --fast t.py 2ms error: cannot format t.py: Cannot parse: 1:6: match x, *something: Oh no! 💥 💔 💥 1 file failed to reformat. (.venv) (3.9.5) [ 6:51ÖS ] [ isidentical@msi:~ ] $ .venv310/bin/python -m ast t.py 135ms Module( body=[ Match( subject=Tuple( elts=[ Name(id='x', ctx=Load()), Starred( value=Name(id='something', ctx=Load()), ctx=Load())], ctx=Load()), cases=[ match_case( pattern=MatchAs(), body=[ Pass()])])], type_ignores=[])
The text was updated successfully, but these errors were encountered:
Allow top-level starred expression on match (#2659)
8cdac18
Fixes #2647
Successfully merging a pull request may close this issue.
E.g:
The text was updated successfully, but these errors were encountered: