mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 17:23:53 +01:00
Fix docstring for StateHandler.resolve_state_groups
The return type was a complete lie, so fix it
This commit is contained in:
parent
4c65b98e4a
commit
a18828c129
1 changed files with 9 additions and 4 deletions
|
@ -58,7 +58,11 @@ class _StateCacheEntry(object):
|
||||||
__slots__ = ["state", "state_group", "state_id", "prev_group", "delta_ids"]
|
__slots__ = ["state", "state_group", "state_id", "prev_group", "delta_ids"]
|
||||||
|
|
||||||
def __init__(self, state, state_group, prev_group=None, delta_ids=None):
|
def __init__(self, state, state_group, prev_group=None, delta_ids=None):
|
||||||
|
# dict[(str, str), str] map from (type, state_key) to event_id
|
||||||
self.state = frozendict(state)
|
self.state = frozendict(state)
|
||||||
|
|
||||||
|
# the ID of a state group if one and only one is involved.
|
||||||
|
# otherwise, None otherwise?
|
||||||
self.state_group = state_group
|
self.state_group = state_group
|
||||||
|
|
||||||
self.prev_group = prev_group
|
self.prev_group = prev_group
|
||||||
|
@ -280,11 +284,12 @@ class StateHandler(object):
|
||||||
""" Given a list of event_ids this method fetches the state at each
|
""" Given a list of event_ids this method fetches the state at each
|
||||||
event, resolves conflicts between them and returns them.
|
event, resolves conflicts between them and returns them.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
room_id (str):
|
||||||
|
event_ids (list[str]):
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
a Deferred tuple of (`state_group`, `state`, `prev_state`).
|
Deferred[_StateCacheEntry]: resolved state
|
||||||
`state_group` is the name of a state group if one and only one is
|
|
||||||
involved. `state` is a map from (type, state_key) to event, and
|
|
||||||
`prev_state` is a list of event ids.
|
|
||||||
"""
|
"""
|
||||||
logger.debug("resolve_state_groups event_ids %s", event_ids)
|
logger.debug("resolve_state_groups event_ids %s", event_ids)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue