diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-12-02 11:18:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 16:18:10 +0000 |
commit | d2279f471ba8f44d9f578e62b286897a338d8aa1 (patch) | |
tree | 8b17a34a518a7f3a1d68510fb46dbd3b105995b3 /synapse/federation/federation_client.py | |
parent | Avoid waiting for zombie processes in `synctl stop` (#11490) (diff) | |
download | synapse-d2279f471ba8f44d9f578e62b286897a338d8aa1.tar.xz |
Add most of the missing type hints to `synapse.federation`. (#11483)
This skips a few methods which are difficult to type.
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r-- | synapse/federation/federation_client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index be1423da24..fee1477ab6 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -128,7 +128,7 @@ class FederationClient(FederationBase): reset_expiry_on_get=False, ) - def _clear_tried_cache(self): + def _clear_tried_cache(self) -> None: """Clear pdu_destination_tried cache""" now = self._clock.time_msec() @@ -800,7 +800,7 @@ class FederationClient(FederationBase): no servers successfully handle the request. """ - async def send_request(destination) -> SendJoinResult: + async def send_request(destination: str) -> SendJoinResult: response = await self._do_send_join(room_version, destination, pdu) # If an event was returned (and expected to be returned): |