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
ruff --format currently reformats this code:
ruff --format
async with \ Dispatch(obj.cfg, run=True, sig=True) as dsp, \ dsp.cfg_at(*cfg["path"], *cfg_path) as cf, \ dsp.sub_at(*cfg["path"], *fs_path) as fs:
as
async with Dispatch(obj.cfg, run=True, sig=True) as dsp, dsp.cfg_at( *cfg["path"], *cfg_path, ) as cf, dsp.sub_at(*cfg["path"], *fs_path) as fs:
This is … really unhelpful. It would be a lot nicer to add parentheses instead:
async with ( Dispatch(obj.cfg, run=True, sig=True) as dsp, dsp.cfg_at(*cfg["path"], *cfg_path) as cf, dsp.sub_at(*cfg["path"], *fs_path) as fs, ):
which I currently need to do manually.
This syntax refinement was added in Py3.10.
The text was updated successfully, but these errors were encountered:
Parenthesized context managers aren't supported on older versions of Python, but we will enforce this as part of implementing Black's preview style.
Sorry, something went wrong.
I'll close this because it is tracked in #8678 (see wrap_multiple_context_managers_in_parens)
No branches or pull requests
ruff --format
currently reformats this code:as
This is … really unhelpful. It would be a lot nicer to add parentheses instead:
which I currently need to do manually.
This syntax refinement was added in Py3.10.
The text was updated successfully, but these errors were encountered: