-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
fixesRelated to suggested fixes for violationsRelated to suggested fixes for violations
Description
If I have this statement assigning a lambda, which returns a multiline string, to a variable:
x = lambda: """
a
b
"""The automatic fix turns it into
def x():
return "\n a\n b\n"This technically preserves the whitespace correctly, but destroys readability.
I don't know if it is possible, but it would be great, if the fix could preserve the original multiline string:
def x():
return """
a
b
"""Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fixesRelated to suggested fixes for violationsRelated to suggested fixes for violations