mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 05:54:59 -04:00
Use StrCollection in place of Collection[str] in (most) handlers code. (#14922)
Due to the increased safety of StrCollection over Collection[str] and Sequence[str].
This commit is contained in:
parent
dc901a885f
commit
ba79fb4a61
13 changed files with 43 additions and 58 deletions
|
@ -36,7 +36,7 @@ from synapse.api.errors import (
|
|||
)
|
||||
from synapse.api.ratelimiting import Ratelimiter
|
||||
from synapse.events import EventBase
|
||||
from synapse.types import JsonDict, Requester
|
||||
from synapse.types import JsonDict, Requester, StrCollection
|
||||
from synapse.util.caches.response_cache import ResponseCache
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
@ -870,7 +870,7 @@ class _RoomQueueEntry:
|
|||
# The room ID of this entry.
|
||||
room_id: str
|
||||
# The server to query if the room is not known locally.
|
||||
via: Sequence[str]
|
||||
via: StrCollection
|
||||
# The minimum number of hops necessary to get to this room (compared to the
|
||||
# originally requested room).
|
||||
depth: int = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue