Fix typechecks against twisted trunk (#13061)

This commit is contained in:
David Robertson 2022-06-15 11:49:58 +01:00 committed by GitHub
parent bd03332a1d
commit a4ae1406d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -495,6 +495,7 @@ class StateTestCase(unittest.TestCase):
prev_events = list(graph[node_id])
state_before: StateMap[str]
if len(prev_events) == 0:
state_before = {}
elif len(prev_events) == 1: