summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-23 15:05:40 +0100
committerErik Johnston <erik@matrix.org>2018-07-23 15:05:56 +0100
commit4797ed000e612b68c418ce8c342bdd7ecc16b198 (patch)
treee53ae887887d0e1aecea4a867714ae57144c1929 /synapse/events
parentMerge branch 'develop' into erikj/stateless_contexts_4 (diff)
downloadsynapse-4797ed000e612b68c418ce8c342bdd7ecc16b198.tar.xz
Update docstrings to make sense
Diffstat (limited to 'synapse/events')
-rw-r--r--synapse/events/snapshot.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/synapse/events/snapshot.py b/synapse/events/snapshot.py
index b090751bf1..a6d7bf5700 100644
--- a/synapse/events/snapshot.py
+++ b/synapse/events/snapshot.py
@@ -55,13 +55,16 @@ class EventContext(object):
         _fetching_state_deferred (Deferred|None): Resolves when *_state_ids have
             been calculated. None if we haven't started calculating yet
 
-        _prev_state_id (str|None): If set then the event associated with the
-            context overrode the _prev_state_id
-
-        _event_type (str): The type of the event the context is associated with
+        _event_type (str): The type of the event the context is associated with.
+            Only set when state has not been fetched yet.
 
         _event_state_key (str|None): The state_key of the event the context is
-            associated with
+            associated with. Only set when state has not been fetched yet.
+
+        _prev_state_id (str|None): If the event associated with the context is
+            a state event, then `_prev_state_id` is the event_id of the state
+            that was replaced.
+            Only set when state has not been fetched yet.
     """
 
     __slots__ = [