Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
e15d4ea2
Commit
e15d4ea2
authored
7 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
More docstring fixes
Fix a couple of errors in docstrings
parent
a18828c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/state.py
+4
-4
4 additions, 4 deletions
synapse/state.py
with
4 additions
and
4 deletions
synapse/state.py
+
4
−
4
View file @
e15d4ea2
...
...
@@ -434,8 +434,8 @@ def resolve_events_with_state_map(state_sets, state_map):
state_sets.
Returns
dict[(str, str), s
ynapse.events.FrozenEven
t]:
a map from (type, state_key) to event.
dict[(str, str), st
r
]:
a map from (type, state_key) to event
_id
.
"""
if
len
(
state_sets
)
==
1
:
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.
Returns
Deferred[dict[(str, str), s
ynapse.events.FrozenEven
t]]:
a map from (type, state_key) to event.
Deferred[dict[(str, str), st
r
]]:
a map from (type, state_key) to event
_id
.
"""
if
len
(
state_sets
)
==
1
:
defer
.
returnValue
(
state_sets
[
0
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment