-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
F: docstringsHow we format docstringsHow we format docstringsT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?
Description
"""This is a module docstring.
"""
def func():
"""This is a func docstring.
"""
is formatted to:
"""This is a module docstring.
"""
def func():
"""This is a func docstring."""
From what I can tell, this is because is_docstring(leaf)
returns False
for the module doc here, so this looks like a bug, not an intentional design choice?
ForrestHilton
Metadata
Metadata
Assignees
Labels
F: docstringsHow we format docstringsHow we format docstringsT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?