Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5706c8b

Browse files
committed
fix isort and mypy linting
1 parent f95ec90 commit 5706c8b

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

scripts/synapse_port_db

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ from synapse.storage.databases.main.events_bg_updates import (
4747
from synapse.storage.databases.main.media_repository import (
4848
MediaRepositoryBackgroundUpdateStore,
4949
)
50-
from synapse.storage.databases.main.pusher import PusherWorkerStore
5150
from synapse.storage.databases.main.profile import ProfileStore
51+
from synapse.storage.databases.main.pusher import PusherWorkerStore
5252
from synapse.storage.databases.main.registration import (
5353
RegistrationBackgroundUpdateStore,
5454
find_max_generated_user_id_localpart,

synapse/handlers/profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def __init__(self, hs: "HomeServer"):
8787
)
8888

8989
if len(self.hs.config.replicate_user_profiles_to) > 0:
90-
reactor.callWhenRunning(self._do_assign_profile_replication_batches)
91-
reactor.callWhenRunning(self._start_replicate_profiles)
90+
reactor.callWhenRunning(self._do_assign_profile_replication_batches) # type: ignore
91+
reactor.callWhenRunning(self._start_replicate_profiles) # type: ignore
9292
# Add a looping call to replicate_profiles: this handles retries
9393
# if the replication is unsuccessful when the user updated their
9494
# profile.

synapse/replication/http/membership.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ async def _serialize_payload( # type: ignore
146146

147147
async def _handle_request( # type: ignore
148148
self,
149-
request: Request,
149+
request: SynapseRequest,
150150
room_id: str,
151151
user_id: str,
152152
):
@@ -284,7 +284,7 @@ async def _serialize_payload( # type: ignore
284284

285285
async def _handle_request( # type: ignore
286286
self,
287-
request: Request,
287+
request: SynapseRequest,
288288
knock_event_id: str,
289289
):
290290
content = parse_json_object_from_request(request)

synapse/rest/client/v2_alpha/knock.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
parse_json_object_from_request,
2626
parse_list_from_args,
2727
)
28+
from synapse.http.site import SynapseRequest
2829
from synapse.logging.opentracing import set_tag
2930
from synapse.rest.client.transactions import HttpTransactionCache
3031
from synapse.types import JsonDict, RoomAlias, RoomID
@@ -54,7 +55,7 @@ def __init__(self, hs: "HomeServer"):
5455

5556
async def on_POST(
5657
self,
57-
request: Request,
58+
request: SynapseRequest,
5859
room_identifier: str,
5960
txn_id: Optional[str] = None,
6061
) -> Tuple[int, JsonDict]:
@@ -68,7 +69,7 @@ async def on_POST(
6869
if RoomID.is_valid(room_identifier):
6970
room_id = room_identifier
7071
try:
71-
remote_room_hosts = parse_list_from_args(request.args, "server_name")
72+
remote_room_hosts = parse_list_from_args(request.args, "server_name") # type: ignore
7273
except KeyError:
7374
remote_room_hosts = None
7475
elif RoomAlias.is_valid(room_identifier):

0 commit comments

Comments
 (0)