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

Commit

Permalink
FilterEvent: Use a Union instead of TypeVar
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Feb 3, 2023
1 parent 4b4a863 commit e11e6f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions synapse/api/filtering.py
Expand Up @@ -26,7 +26,6 @@
Mapping,
Optional,
Set,
TypeVar,
Union,
)

Expand Down Expand Up @@ -202,7 +201,7 @@ def check_valid_filter(self, user_filter_json: JsonDict) -> None:


# Filters work across events, presence EDUs, and account data.
FilterEvent = TypeVar("FilterEvent", EventBase, UserPresenceState, JsonDict)
FilterEvent = Union["FilterEvent", EventBase, UserPresenceState, JsonDict]


class FilterCollection:
Expand Down

0 comments on commit e11e6f3

Please sign in to comment.