summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2022-08-01 10:14:29 -0400
committerGitHub <noreply@github.com>2022-08-01 14:14:29 +0000
commitf8e7a9418a755b888ed254896bada5e45ebc0a04 (patch)
tree2ae946e968c7f6ca943cf2a5e653f79b2a4d066c
parentRefactor `_resolve_state_at_missing_prevs` to return an `EventContext` (#13404) (diff)
downloadsynapse-f8e7a9418a755b888ed254896bada5e45ebc0a04.tar.xz
Fix missing import in `federation_event` handler. (#13431)
#13404 removed an import of `Optional` which was still needed
due to #13413 added more usages.
-rw-r--r--changelog.d/13431.misc1
-rw-r--r--synapse/handlers/federation_event.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/13431.misc b/changelog.d/13431.misc
new file mode 100644
index 0000000000..655be4061b
--- /dev/null
+++ b/changelog.d/13431.misc
@@ -0,0 +1 @@
+Refactor `_resolve_state_at_missing_prevs` to compute an `EventContext` instead.
diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py
index 612e5aaa5b..91d1439191 100644
--- a/synapse/handlers/federation_event.py
+++ b/synapse/handlers/federation_event.py
@@ -23,6 +23,7 @@ from typing import (
     Dict,
     Iterable,
     List,
+    Optional,
     Sequence,
     Set,
     Tuple,