We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3216b64 commit 8e76277Copy full SHA for 8e76277
yapf/yapflib/format_decision_state.py
@@ -564,7 +564,7 @@ def SurroundedByParens(token):
564
if split_before and prev_token:
565
clause_start = _PrevLogicalClause(prev_token)
566
length += opening.total_length - clause_start.total_length
567
- elif not split_before and next_token
+ elif not split_before and next_token:
568
clause_end = _NextLogicalClause(next_token)
569
length += clause_end.total_length - ending.total_length
570
else:
0 commit comments