-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.T: enhancementNew feature or requestNew feature or request
Description
Operating system: Win10 Version 10.0.18362 Build 18362
Python version: 3.7.3
Black version: 9.3b0
Does also happen on master: Yes
Input:
def g() -> None:
name_of_local_variable = "Very long string value that should be placed on the next line"
f(
name_of_the_parameter="Very long string value that should be placed on the next line"
)Output:
def g() -> None:
name_of_local_variable = (
"Very long string value that should be placed on the next line"
)
f(
name_of_the_parameter="Very long string value that should be placed on the next line"
)name_of_local_variable's value is put on the next line, but name_of_the_parameter is untouched.
This is true even if I use name_of_the_parameter=lambda x: "Very long string value that should be placed on the next line" which gives two opportunities for wrapping.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.T: enhancementNew feature or requestNew feature or request