diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-12-29 11:39:28 +0000 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-12-29 11:39:28 +0000 |
commit | 033487adc41f81339d22710eb9060484a723fd3e (patch) | |
tree | 88e3697b2fe63c0e142dc7de168b3972632d2742 | |
parent | Newsfile (diff) | |
download | synapse-rei/p/2021-12-29_develop_PLUS_msc3202_otks_fbks.tar.xz |
Antilint after large rebase github/rei/p/2021-12-29_develop_PLUS_msc3202_otks_fbks rei/p/2021-12-29_develop_PLUS_msc3202_otks_fbks
-rw-r--r-- | synapse/appservice/scheduler.py | 16 | ||||
-rw-r--r-- | synapse/storage/databases/main/end_to_end_keys.py | 4 |
2 files changed, 17 insertions, 3 deletions
diff --git a/synapse/appservice/scheduler.py b/synapse/appservice/scheduler.py index 10e9a2fd23..821bab2c42 100644 --- a/synapse/appservice/scheduler.py +++ b/synapse/appservice/scheduler.py @@ -48,7 +48,17 @@ This is all tied together by the AppServiceScheduler which DIs the required components. """ import logging -from typing import TYPE_CHECKING, Awaitable, Callable, Dict, Iterable, List, Optional, Set, Tuple +from typing import ( + TYPE_CHECKING, + Awaitable, + Callable, + Dict, + Iterable, + List, + Optional, + Set, + Tuple, +) from synapse.appservice import ( ApplicationService, @@ -148,7 +158,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: [event_json]} diff --git a/synapse/storage/databases/main/end_to_end_keys.py b/synapse/storage/databases/main/end_to_end_keys.py index cd5f99fa46..0dd5a2e4ec 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, |