ruff
8c146bbf - Allow collapsed-ellipsis bodies in other statements (#8499)

Commit
1 year ago
Allow collapsed-ellipsis bodies in other statements (#8499) ## Summary Black and Ruff's preview styles now collapse statements like: ```python from contextlib import nullcontext ctx = nullcontext() with ctx: ... ``` Historically, we made an exception here for classes (https://github.com/astral-sh/ruff/pull/2837). This PR extends it to other statement kinds for consistency with the formatter. Closes https://github.com/astral-sh/ruff/issues/8496.
Author
Parents
Loading