From 3fa8d92dd91fec275c53e689c3c85624418fdbc2 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 24 Feb 2020 22:52:57 +0000 Subject: [PATCH] Remove breaky type annotations --- synapse/replication/http/federation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/replication/http/federation.py b/synapse/replication/http/federation.py index c7b27134aff6..8794720101e6 100644 --- a/synapse/replication/http/federation.py +++ b/synapse/replication/http/federation.py @@ -17,7 +17,7 @@ from twisted.internet import defer -from synapse.api.room_versions import KNOWN_ROOM_VERSIONS, RoomVersion +from synapse.api.room_versions import KNOWN_ROOM_VERSIONS from synapse.events import event_type_from_format_version from synapse.events.snapshot import EventContext from synapse.http.servlet import parse_json_object_from_request @@ -261,7 +261,7 @@ def __init__(self, hs): self.store = hs.get_datastore() @staticmethod - def _serialize_payload(room_id: str, room_version: RoomVersion): + def _serialize_payload(room_id, room_version): return {"room_version": room_version.identifier} async def _handle_request(self, request, room_id):