summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-11-08 09:50:48 +0000
committerErik Johnston <erik@matrix.org>2019-11-08 09:50:48 +0000
commite4ec82ce0fdd17f912fad76defd53ec99f782528 (patch)
tree9af2092f7d7f5cea803ec4a9254c3aa8fc6329fc /synapse/storage
parentFix deleting state groups during room purge. (diff)
downloadsynapse-e4ec82ce0fdd17f912fad76defd53ec99f782528.tar.xz
Move type annotation into docstring
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/data_stores/main/events.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/data_stores/main/events.py b/synapse/storage/data_stores/main/events.py
index 946823876a..878f7568a6 100644
--- a/synapse/storage/data_stores/main/events.py
+++ b/synapse/storage/data_stores/main/events.py
@@ -19,7 +19,6 @@ import itertools
 import logging
 from collections import Counter as c_counter, OrderedDict, namedtuple
 from functools import wraps
-from typing import Collection
 
 from six import iteritems, text_type
 from six.moves import range
@@ -1737,7 +1736,7 @@ class EventsStore(
         return state_groups
 
     def purge_unreferenced_state_groups(
-        self, room_id: str, state_groups_to_delete: Collection[int]
+        self, room_id: str, state_groups_to_delete
     ) -> defer.Deferred:
         """Deletes no longer referenced state groups and de-deltas any state
         groups that reference them.
@@ -1745,7 +1744,8 @@ class EventsStore(
         Args:
             room_id: The room the state groups belong to (must all be in the
                 same room).
-            state_groups_to_delete: Set of all state groups to delete.
+            state_groups_to_delete (Collection[int]): Set of all state groups
+                to delete.
         """
 
         return self.runInteraction(