From 8e762776e93c93eb4ac76f852a324df34bb4a975 Mon Sep 17 00:00:00 2001 From: Jesse Clemens Date: Mon, 28 Aug 2023 10:58:52 -0400 Subject: [PATCH] Add a missing colon that got misplaced during code cleanup --- yapf/yapflib/format_decision_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yapf/yapflib/format_decision_state.py b/yapf/yapflib/format_decision_state.py index df83b208c..598bddf44 100644 --- a/yapf/yapflib/format_decision_state.py +++ b/yapf/yapflib/format_decision_state.py @@ -564,7 +564,7 @@ def SurroundedByParens(token): if split_before and prev_token: clause_start = _PrevLogicalClause(prev_token) length += opening.total_length - clause_start.total_length - elif not split_before and next_token + elif not split_before and next_token: clause_end = _NextLogicalClause(next_token) length += clause_end.total_length - ending.total_length else: