From 5a3a5d9299ff0a2fbe2278a10ae7ef5d3693de28 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Thu, 3 Feb 2022 13:37:00 +0000 Subject: [PATCH] Antilint --- synapse/appservice/scheduler.py | 6 ++++-- synapse/storage/databases/main/end_to_end_keys.py | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/synapse/appservice/scheduler.py b/synapse/appservice/scheduler.py index 92b60c19b36d..31ae0c8f82eb 100644 --- a/synapse/appservice/scheduler.py +++ b/synapse/appservice/scheduler.py @@ -58,7 +58,7 @@ List, Optional, Set, - Tuple + Tuple, ) from synapse.appservice import ( @@ -160,7 +160,9 @@ class _ServiceQueuer: appservice at a given time. """ - def __init__(self, txn_ctrl: "_TransactionController", clock: Clock, hs: "HomeServer"): + def __init__( + self, txn_ctrl: "_TransactionController", clock: Clock, hs: "HomeServer" + ): # dict of {service_id: [events]} self.queued_events: Dict[str, List[EventBase]] = {} # dict of {service_id: [events]} diff --git a/synapse/storage/databases/main/end_to_end_keys.py b/synapse/storage/databases/main/end_to_end_keys.py index a71c10f8c8b8..c70f390826e6 100644 --- a/synapse/storage/databases/main/end_to_end_keys.py +++ b/synapse/storage/databases/main/end_to_end_keys.py @@ -14,7 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. import abc -from typing import (TYPE_CHECKING, Collection, +from typing import ( + TYPE_CHECKING, + Collection, Dict, Iterable, List,