summary refs log tree commit diff
path: root/stubs/synapse/synapse_rust
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-01-11 07:35:40 -0500
committerGitHub <noreply@github.com>2023-01-11 07:35:40 -0500
commit7f2cabf271e6027da4001571b9e6584ade3c2c8c (patch)
tree74c3363d48a65ee5b858974ddd2c99302cd7b3c8 /stubs/synapse/synapse_rust
parentAdd index to improve performance of the `/timestamp_to_event` endpoint used f... (diff)
downloadsynapse-7f2cabf271e6027da4001571b9e6584ade3c2c8c.tar.xz
Fix-up type hints for tests.push module. (#14816)
Diffstat (limited to 'stubs/synapse/synapse_rust')
-rw-r--r--stubs/synapse/synapse_rust/push.pyi5
1 files changed, 4 insertions, 1 deletions
diff --git a/stubs/synapse/synapse_rust/push.pyi b/stubs/synapse/synapse_rust/push.pyi
index dab5d4aff7..67b2fb99ab 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, Tuple, Union
+from typing import Any, Collection, Dict, Mapping, Optional, Sequence, Set, Tuple, Union
 
 from synapse.types import JsonDict
 
@@ -54,3 +54,6 @@ class PushRuleEvaluator:
         user_id: Optional[str],
         display_name: Optional[str],
     ) -> Collection[Union[Mapping, str]]: ...
+    def matches(
+        self, condition: JsonDict, user_id: Optional[str], display_name: Optional[str]
+    ) -> bool: ...