summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-11-06 17:00:18 +0000
committerErik Johnston <erik@matrix.org>2019-11-06 17:00:18 +0000
commit71f3bd734fe9f8f903c5a496720e7dcf926f2f4a (patch)
treea39c8885570538d2879d5bb9479b0dfecf6be8ab
parentMerge branch 'develop' of github.com:matrix-org/synapse into erikj/split_purg... (diff)
downloadsynapse-71f3bd734fe9f8f903c5a496720e7dcf926f2f4a.tar.xz
Use correct type annotation
-rw-r--r--synapse/storage/data_stores/main/events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/data_stores/main/events.py b/synapse/storage/data_stores/main/events.py
index 3049a21dc5..d69c59f5a1 100644
--- a/synapse/storage/data_stores/main/events.py
+++ b/synapse/storage/data_stores/main/events.py
@@ -19,7 +19,7 @@ import itertools
 import logging
 from collections import Counter as c_counter, OrderedDict, namedtuple
 from functools import wraps
-from typing import Set
+from typing import Collection
 
 from six import iteritems, text_type
 from six.moves import range
@@ -1736,7 +1736,7 @@ class EventsStore(
         return state_groups
 
     def purge_unreferenced_state_groups(
-        self, room_id: str, state_groups_to_delete: Set[int]
+        self, room_id: str, state_groups_to_delete: Collection[int]
     ) -> defer.Deferred:
         """Deletes no longer referenced state groups and de-deltas any state
         groups that reference them.