From c395fef90c3f5472c01ae2280285a00ea4c18803 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 6 Oct 2020 07:15:26 -0400 Subject: [PATCH] Python 3.5 fixes. --- synapse/handlers/device.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py index 028fc0cd6f..4e02feca10 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py @@ -15,17 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. import logging -from typing import ( - TYPE_CHECKING, - Any, - Collection, - Dict, - Iterable, - List, - Optional, - Set, - Tuple, -) +from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Set, Tuple from synapse.api import errors from synapse.api.constants import EventTypes @@ -39,6 +29,7 @@ from synapse.api.errors import ( from synapse.logging.opentracing import log_kv, set_tag, trace from synapse.metrics.background_process_metrics import run_as_background_process from synapse.types import ( + Collection, JsonDict, StreamToken, UserID,