diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-09-13 07:57:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 07:57:19 -0400 |
commit | d38d0dffc94b6269ed7ff5163d60958be3e6c304 (patch) | |
tree | d793f714887dfdceee8b27b678e6c03e3288a2bc /synapse/events/__init__.py | |
parent | Don't schedule an async task on every sync (#16312) (diff) | |
download | synapse-d38d0dffc94b6269ed7ff5163d60958be3e6c304.tar.xz |
Use StrCollection in additional places. (#16301)
Diffstat (limited to 'synapse/events/__init__.py')
-rw-r--r-- | synapse/events/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py index 35257a3b1b..3c1777b7ec 100644 --- a/synapse/events/__init__.py +++ b/synapse/events/__init__.py @@ -25,7 +25,6 @@ from typing import ( Iterable, List, Optional, - Sequence, Tuple, Type, TypeVar, @@ -408,7 +407,7 @@ class EventBase(metaclass=abc.ABCMeta): def keys(self) -> Iterable[str]: return self._dict.keys() - def prev_event_ids(self) -> Sequence[str]: + def prev_event_ids(self) -> List[str]: """Returns the list of prev event IDs. The order matches the order specified in the event, though there is no meaning to it. @@ -553,7 +552,7 @@ class FrozenEventV2(EventBase): self._event_id = "$" + encode_base64(compute_event_reference_hash(self)[1]) return self._event_id - def prev_event_ids(self) -> Sequence[str]: + def prev_event_ids(self) -> List[str]: """Returns the list of prev event IDs. The order matches the order specified in the event, though there is no meaning to it. |