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 reports a parsing error when using multiline context managers using the 'with/as' pattern.
To Reproduce Run the below code for the parsing issue. Then remove as x as y as z, this will run without issue.
as x
as y
as z
with ( open("xxxxxxxxxxxxxxxxxxxx", "w") as x, open("yyyyyyyyyyyyyyyyyyyyyy", "w") as y, open("zzzzzzzzzzzzzzzzzzz", "w") as z, ): x.write("x") y.write("y") z.write("z")
Expected behavior No error, this is valid code that runs on python 3.9
Environment
Does this bug also happen on main? To answer this, you have two options: Yes, using https://black.vercel.app/?version=main
The text was updated successfully, but these errors were encountered:
See #1948.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Black reports a parsing error when using multiline context managers using the 'with/as' pattern.
To Reproduce
Run the below code for the parsing issue. Then remove
as x
as y
as z
, this will run without issue.Expected behavior
No error, this is valid code that runs on python 3.9
Environment
Does this bug also happen on main? To answer this, you have two options:
Yes, using https://black.vercel.app/?version=main
The text was updated successfully, but these errors were encountered: