-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
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
Black 20 is now changing this:
def p_col(p):
"""col : scalar_col
| scalar_step_col
| attr_col
| flag_col
"""to:
def p_col(p):
"""col : scalar_col
| scalar_step_col
| attr_col
| flag_col
"""Doc strings can be used for formatted text including, well, anything you want. In this case the doc strings are used by PLY to define a parsing grammar. This issue will effect anything that uses leading white space such as Markdown. It's bad form to start mucking with prose. You have no idea what's in there. White space that starts and ends the comment is fair game but not the content in between.
hodgestar, mangelozzi, Spacerat, ghedsouza, Samyak2 and 3 morehodgestar, Samyak2 and elonzh
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?