summary refs log tree commit diff
path: root/stubs
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2022-11-16 12:03:05 +0000
committerGitHub <noreply@github.com>2022-11-16 12:03:05 +0000
commitf844b470f6f3a352e0e7cc81f9e5c58e35705e27 (patch)
tree1f0ccac021cfc246bd93ee4620a19bbee67cee99 /stubs
parentFix HTML templates missing correct HTML tags (#14448) (diff)
downloadsynapse-f844b470f6f3a352e0e7cc81f9e5c58e35705e27.tar.xz
Fix stub return type of `PushRuleEvaluator.run` (#14451)
Diffstat (limited to 'stubs')
-rw-r--r--stubs/synapse/synapse_rust/push.pyi4
1 files changed, 2 insertions, 2 deletions
diff --git a/stubs/synapse/synapse_rust/push.pyi b/stubs/synapse/synapse_rust/push.pyi
index f3b6d6c933..ceade65ef9 100644
--- a/stubs/synapse/synapse_rust/push.pyi
+++ b/stubs/synapse/synapse_rust/push.pyi
@@ -1,4 +1,4 @@
-from typing import Any, Collection, Dict, Mapping, Optional, Sequence, Set, Tuple, Union
+from typing import Any, Collection, Dict, Mapping, Optional, Sequence, Tuple, Union
 
 from synapse.types import JsonDict
 
@@ -47,4 +47,4 @@ class PushRuleEvaluator:
         push_rules: FilteredPushRules,
         user_id: Optional[str],
         display_name: Optional[str],
-    ) -> Collection[dict]: ...
+    ) -> Collection[Union[Mapping, str]]: ...