From 7ae8aaa0912c17fa826915757f060b5e6b9de9d8 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 1a6daddcb..308fd75b9 100644 --- a/yapf/yapflib/format_decision_state.py +++ b/yapf/yapflib/format_decision_state.py @@ -575,7 +575,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: