mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 03:58:06 +03:00
Use correct type annotation
This commit is contained in:
parent
ffe595381d
commit
71f3bd734f
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ import itertools
|
||||||
import logging
|
import logging
|
||||||
from collections import Counter as c_counter, OrderedDict, namedtuple
|
from collections import Counter as c_counter, OrderedDict, namedtuple
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from typing import Set
|
from typing import Collection
|
||||||
|
|
||||||
from six import iteritems, text_type
|
from six import iteritems, text_type
|
||||||
from six.moves import range
|
from six.moves import range
|
||||||
|
@ -1736,7 +1736,7 @@ class EventsStore(
|
||||||
return state_groups
|
return state_groups
|
||||||
|
|
||||||
def purge_unreferenced_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:
|
) -> defer.Deferred:
|
||||||
"""Deletes no longer referenced state groups and de-deltas any state
|
"""Deletes no longer referenced state groups and de-deltas any state
|
||||||
groups that reference them.
|
groups that reference them.
|
||||||
|
|
Loading…
Reference in a new issue