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
Describe the bug
black --preview crashed on some code.
black --preview
To Reproduce
For example, take this code:
v = { ('a_very_long_str_a_very_long_str_a_very_long_str_a_very_long_str_' 'a_very_long_str_a_very_long_str_a_very_long_str_'): { 'key': 'value', }, }
And run it with these arguments:
$ black file.py --preview
The resulting error is:
error: cannot format /Users/yileiyang/Downloads/t.py: Cannot parse: 3:122: "a_very_long_str_a_very_long_str_a_very_long_str_a_very_long_str_a_very_long_str_a_very_long_str_a_very_long_str_": { Oh no! 💥 💔 💥 1 file failed to reformat.
Expected behavior
Should not crash.
Environment
22.8.1.dev4+g383b228
Additional context
Looks like this was caused by #3162, I'll take a look.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
black --preview
crashed on some code.To Reproduce
For example, take this code:
And run it with these arguments:
The resulting error is:
Expected behavior
Should not crash.
Environment
22.8.1.dev4+g383b228
Additional context
Looks like this was caused by #3162, I'll take a look.
The text was updated successfully, but these errors were encountered: