-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
F: empty linesWasting vertical space efficiently.Wasting vertical space efficiently.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?
Description
Describe the style change
Nested classes in typing stubs should have blank lines between them.
Examples in the current Black style
class A:
class B:
attribute: int
class C:
attribute: int
def method(self) -> None: ...
def method2(self) -> None: ...
Desired style
class A:
class B:
attribute: int
class C:
attribute: int
def method(self) -> None: ...
def method2(self) -> None: ...
Additional context
See this for a live demo.
AlexWaygood
Metadata
Metadata
Assignees
Labels
F: empty linesWasting vertical space efficiently.Wasting vertical space efficiently.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?