mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 03:58:06 +03:00
More docstring fixes
Fix a couple of errors in docstrings
This commit is contained in:
parent
a18828c129
commit
e15d4ea248
1 changed files with 4 additions and 4 deletions
|
@ -434,8 +434,8 @@ def resolve_events_with_state_map(state_sets, state_map):
|
||||||
state_sets.
|
state_sets.
|
||||||
|
|
||||||
Returns
|
Returns
|
||||||
dict[(str, str), synapse.events.FrozenEvent]:
|
dict[(str, str), str]:
|
||||||
a map from (type, state_key) to event.
|
a map from (type, state_key) to event_id.
|
||||||
"""
|
"""
|
||||||
if len(state_sets) == 1:
|
if len(state_sets) == 1:
|
||||||
return state_sets[0]
|
return state_sets[0]
|
||||||
|
@ -497,8 +497,8 @@ def resolve_events_with_factory(state_sets, state_map_factory):
|
||||||
a Deferred of dict of event_id to event.
|
a Deferred of dict of event_id to event.
|
||||||
|
|
||||||
Returns
|
Returns
|
||||||
Deferred[dict[(str, str), synapse.events.FrozenEvent]]:
|
Deferred[dict[(str, str), str]]:
|
||||||
a map from (type, state_key) to event.
|
a map from (type, state_key) to event_id.
|
||||||
"""
|
"""
|
||||||
if len(state_sets) == 1:
|
if len(state_sets) == 1:
|
||||||
defer.returnValue(state_sets[0])
|
defer.returnValue(state_sets[0])
|
||||||
|
|
Loading…
Reference in a new issue