Skip to content
New issue

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

Newlines between classes do not get added when the last method of one ends with ellipses #4420

Open
blankRiot96 opened this issue Jul 31, 2024 · 0 comments
Labels
T: style What do we want Blackened code to look like?

Comments

@blankRiot96
Copy link

Describe the style change

Add two newlines between classes

Examples in the current Black style

class Foo:
    def test(): ...
class Bar:
    pass

Desired style

class Foo:
    def test(): ...


class Bar:
    pass

Additional context

black version

black, 24.4.2 (compiled: yes)
Python (CPython) 3.12.4
@blankRiot96 blankRiot96 added the T: style What do we want Blackened code to look like? label Jul 31, 2024
jyotirjoshi added a commit to jyotirjoshi/black that referenced this issue Aug 2, 2024
As per your instruction .I have added space among all the 'class'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: style What do we want Blackened code to look like?
Projects
None yet
Development

No branches or pull requests

1 participant