diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-12-14 07:00:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 07:00:47 -0500 |
commit | 33abbc327813e65aaa91e10f98a31622c045004c (patch) | |
tree | df1a421f099ff6eee752422388f1c79bb5ee034b /synapse/http/site.py | |
parent | checks for generators in database functions (#11564) (diff) | |
download | synapse-33abbc327813e65aaa91e10f98a31622c045004c.tar.xz |
Add missing type hints to synapse.http. (#11571)
Diffstat (limited to 'synapse/http/site.py')
-rw-r--r-- | synapse/http/site.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py index 755ad56637..9f68d7e191 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py @@ -14,7 +14,7 @@ import contextlib import logging import time -from typing import Generator, Optional, Tuple, Union +from typing import Any, Generator, Optional, Tuple, Union import attr from zope.interface import implementer @@ -66,9 +66,9 @@ class SynapseRequest(Request): self, channel: HTTPChannel, site: "SynapseSite", - *args, + *args: Any, max_request_body_size: int = 1024, - **kw, + **kw: Any, ): super().__init__(channel, *args, **kw) self._max_request_body_size = max_request_body_size @@ -557,7 +557,7 @@ class SynapseSite(Site): proxied = config.http_options.x_forwarded request_class = XForwardedForRequest if proxied else SynapseRequest - def request_factory(channel, queued: bool) -> Request: + def request_factory(channel: HTTPChannel, queued: bool) -> Request: return request_class( channel, self, |