Skip to content
Snippets Groups Projects
Unverified Commit f844b470 authored by Andrew Morgan's avatar Andrew Morgan Committed by GitHub
Browse files

Fix stub return type of `PushRuleEvaluator.run` (#14451)

parent 5cb6ad3b
No related branches found
No related tags found
No related merge requests found
Fix an incorrect stub return type for `PushRuleEvaluator.run`.
\ No newline at end of file
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]]: ...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment