mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix stub return type of PushRuleEvaluator.run
(#14451)
This commit is contained in:
parent
5cb6ad3b87
commit
f844b470f6
1
changelog.d/14451.misc
Normal file
1
changelog.d/14451.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix an incorrect stub return type for `PushRuleEvaluator.run`.
|
@ -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
|
from synapse.types import JsonDict
|
||||||
|
|
||||||
@ -47,4 +47,4 @@ class PushRuleEvaluator:
|
|||||||
push_rules: FilteredPushRules,
|
push_rules: FilteredPushRules,
|
||||||
user_id: Optional[str],
|
user_id: Optional[str],
|
||||||
display_name: Optional[str],
|
display_name: Optional[str],
|
||||||
) -> Collection[dict]: ...
|
) -> Collection[Union[Mapping, str]]: ...
|
||||||
|
Loading…
Reference in New Issue
Block a user