mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 14:04:59 -04:00
Add remaining type hints to synapse.events
. (#11098)
This commit is contained in:
parent
4535532526
commit
c01bc5f43d
15 changed files with 184 additions and 109 deletions
|
@ -570,7 +570,7 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
|||
|
||||
async def get_joined_users_from_context(
|
||||
self, event: EventBase, context: EventContext
|
||||
):
|
||||
) -> Dict[str, ProfileInfo]:
|
||||
state_group = context.state_group
|
||||
if not state_group:
|
||||
# If state_group is None it means it has yet to be assigned a
|
||||
|
@ -584,7 +584,9 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
|||
event.room_id, state_group, current_state_ids, event=event, context=context
|
||||
)
|
||||
|
||||
async def get_joined_users_from_state(self, room_id, state_entry):
|
||||
async def get_joined_users_from_state(
|
||||
self, room_id, state_entry
|
||||
) -> Dict[str, ProfileInfo]:
|
||||
state_group = state_entry.state_group
|
||||
if not state_group:
|
||||
# If state_group is None it means it has yet to be assigned a
|
||||
|
@ -607,7 +609,7 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
|||
cache_context,
|
||||
event=None,
|
||||
context=None,
|
||||
):
|
||||
) -> Dict[str, ProfileInfo]:
|
||||
# We don't use `state_group`, it's there so that we can cache based
|
||||
# on it. However, it's important that it's never None, since two current_states
|
||||
# with a state_group of None are likely to be different.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue