Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix stub return type of PushRuleEvaluator.run (#14451)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 authored Nov 16, 2022
1 parent 5cb6ad3 commit f844b47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/14451.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix an incorrect stub return type for `PushRuleEvaluator.run`.
4 changes: 2 additions & 2 deletions stubs/synapse/synapse_rust/push.pyi
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -47,4 +47,4 @@ class PushRuleEvaluator:
push_rules: FilteredPushRules,
user_id: Optional[str],
display_name: Optional[str],
) -> Collection[dict]: ...
) -> Collection[Union[Mapping, str]]: ...

0 comments on commit f844b47

Please sign in to comment.