1 files changed, 7 insertions, 4 deletions
diff --git a/synapse/types.py b/synapse/types.py
index eafe729dfe..721343f0b5 100644
--- a/synapse/types.py
+++ b/synapse/types.py
@@ -469,8 +469,7 @@ class RoomStreamToken:
)
def __attrs_post_init__(self):
- """Validates that both `topological` and `instance_map` aren't set.
- """
+ """Validates that both `topological` and `instance_map` aren't set."""
if self.instance_map and self.topological:
raise ValueError(
@@ -498,7 +497,11 @@ class RoomStreamToken:
instance_name = await store.get_name_from_instance_id(instance_id)
instance_map[instance_name] = pos
- return cls(topological=None, stream=stream, instance_map=instance_map,)
+ return cls(
+ topological=None,
+ stream=stream,
+ instance_map=instance_map,
+ )
except Exception:
pass
raise SynapseError(400, "Invalid token %r" % (string,))
@@ -675,7 +678,7 @@ class PersistedEventPosition:
persisted in the same room after this position will be after the
returned `RoomStreamToken`.
- Note: no guarentees are made about ordering w.r.t. events in other
+ Note: no guarantees are made about ordering w.r.t. events in other
rooms.
"""
# Doing the naive thing satisfies the desired properties described in
|