Clarity: special case: avoid using variables that have the same names as methods
This commit is contained in:
parent
51141f1af4
commit
89c42a0011
@ -5008,7 +5008,7 @@ def bracket_split_build_line(
|
|||||||
result.append(leaf, preformatted=True)
|
result.append(leaf, preformatted=True)
|
||||||
for comment_after in original.comments_after(leaf):
|
for comment_after in original.comments_after(leaf):
|
||||||
result.append(comment_after, preformatted=True)
|
result.append(comment_after, preformatted=True)
|
||||||
if is_body and should_split(result, opening_bracket):
|
if is_body and should_split_line(result, opening_bracket):
|
||||||
result.should_split = True
|
result.should_split = True
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@ -5813,7 +5813,7 @@ def ensure_visible(leaf: Leaf) -> None:
|
|||||||
leaf.value = ")"
|
leaf.value = ")"
|
||||||
|
|
||||||
|
|
||||||
def should_split(line: Line, opening_bracket: Leaf) -> bool:
|
def should_split_line(line: Line, opening_bracket: Leaf) -> bool:
|
||||||
"""Should `line` be immediately split with `delimiter_split()` after RHS?"""
|
"""Should `line` be immediately split with `delimiter_split()` after RHS?"""
|
||||||
|
|
||||||
if not (opening_bracket.parent and opening_bracket.value in "[{("):
|
if not (opening_bracket.parent and opening_bracket.value in "[{("):
|
||||||
|
Loading…
Reference in New Issue
Block a user