diff --git a/synapse/storage/persist_events.py b/synapse/storage/persist_events.py index bb714aec1d1f..c4b7c6445ce1 100644 --- a/synapse/storage/persist_events.py +++ b/synapse/storage/persist_events.py @@ -107,8 +107,9 @@ _PersistResult = TypeVar("_PersistResult") -@attr.s(auto_attribs=True, slots=True) +@attr.s(auto_attribs=True) class _EventPersistQueueItem(Generic[_PersistResult]): + __slots__ = ["events_and_contexts", "backfilled", "deferred"] events_and_contexts: List[Tuple[EventBase, EventContext]] backfilled: bool deferred: ObservableDeferred[_PersistResult]