Formatter: stub files only have one empty lines between top level items #5821
Labels
formatter
Related to the formatter
good first issue
Good for newcomers
help wanted
Contributions especially welcome
Milestone
Black only formats one empty line between top level items in stub files (.pyi), while it uses two empty lines in regular python files. When single line classes, method and functions of the same kind that are stubbed out with ellipses follow each they don't get any empty lines.
scratch.py
scratch.pyi
The relevant code is below, which doesn't have access to whether it's in a stub file or not yet.
ruff/crates/ruff_python_formatter/src/statement/suite.rs
Line 72 in f5f8eb3
The text was updated successfully, but these errors were encountered: