Please pyright

This commit is contained in:
Alexander Kukushkin
2023-07-26 07:58:29 +02:00
parent 3bf7095ead
commit a48ef036ea
+1 -1
View File
@@ -151,7 +151,7 @@ class QuorumStateResolver(object):
# Merge 2 transitions of the same type to a single one. This is always safe because skipping the first
# transition is equivalent to no one observing the intermediate state.
for cur_transition, next_transition in zip(transitions, transitions[1:] + [None]):
if next_transition and cur_transition[0] == next_transition[0]:
if isinstance(next_transition, tuple) and cur_transition[0] == next_transition[0]:
continue
yield cur_transition
if cur_transition[0] == 'restart':