blank_line_after_nested_stub_class
: blank line got added after a nested class with ...
#4119
Labels
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
T: bug
Something isn't working
Describe the bug
The preview style description says that the blank line won't be added if the body contains only
...
, but it seems that Black is adding an empty line nevertheless.To Reproduce
For example, take this code:
And run it with these arguments:
The resulting code is:
Expected behavior
There shouldn't be a blank line after
Nested1
as it only contains an ellipsis (...
).Environment
24.1a1
Additional context
For reference, Black playground.
Please correct me if I'm misinterpreting the preview style.
The text was updated successfully, but these errors were encountered: