We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe92eeb commit 4befa03Copy full SHA for 4befa03
yapf/yapflib/format_decision_state.py
@@ -575,7 +575,7 @@ def SurroundedByParens(token):
575
if split_before and prev_token:
576
clause_start = _PrevLogicalClause(prev_token)
577
length += opening.total_length - clause_start.total_length
578
- elif not split_before and next_token
+ elif not split_before and next_token:
579
clause_end = _NextLogicalClause(next_token)
580
length += clause_end.total_length - ending.total_length
581
else:
0 commit comments