diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py index 957bffc68c..71da0fa281 100644 --- a/synapse/handlers/federation_event.py +++ b/synapse/handlers/federation_event.py @@ -2387,9 +2387,8 @@ class FederationEventHandler: ) raise SynapseError(HTTPStatus.BAD_REQUEST, "Too many auth_events") -def find_predecessors( - event_ids: Iterable[str], batch: List[EventBase] -) -> Set[str]: + +def find_predecessors(event_ids: Iterable[str], batch: List[EventBase]) -> Set[str]: """ Walk the tree of dependencies (in batch), and return every event that is in batch, and is an ancestor of one of the supplied events.