Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Move type annotation into docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Nov 8, 2019
1 parent 5c33632 commit e4ec82c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/storage/data_stores/main/events.py
Expand Up @@ -19,7 +19,6 @@
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
Expand Down Expand Up @@ -1737,15 +1736,16 @@ def _purge_room_txn(self, txn, room_id):
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.
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(
Expand Down

0 comments on commit e4ec82c

Please sign in to comment.