-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
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
Add Python version to output of black --version
#2992
Comments
I can't reproduce this. Make sure you're running Black itself under Python 3.10+ too:
|
Thanks, that was the error indeed! |
BTW it would be helpful to know with which is the Python version in the output of |
black --version
Good point, reopening this issue to reflect that suggestion |
Also it may be fair to issue an error or a warning if |
Describe the bug
With structural pattern matching, Black fails with an invalid syntax, even though target version is
py310
.To Reproduce
For example, take this code:
And run it with these arguments:
The resulting error is:
Reproduced also with black show
Expected behavior
Environment
The text was updated successfully, but these errors were encountered: