diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-01-11 07:35:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 07:35:40 -0500 |
commit | 7f2cabf271e6027da4001571b9e6584ade3c2c8c (patch) | |
tree | 74c3363d48a65ee5b858974ddd2c99302cd7b3c8 /stubs/synapse | |
parent | Add index to improve performance of the `/timestamp_to_event` endpoint used f... (diff) | |
download | synapse-7f2cabf271e6027da4001571b9e6584ade3c2c8c.tar.xz |
Fix-up type hints for tests.push module. (#14816)
Diffstat (limited to 'stubs/synapse')
-rw-r--r-- | stubs/synapse/synapse_rust/push.pyi | 5 |
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: ... |