mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-23 13:51:15 -05:00
daemon: Mypy fixes.
This commit is contained in:
parent
25a36a6d47
commit
78041c7a6a
@ -43,7 +43,7 @@ class ProxyDaemon:
|
||||
default_session = attr.ib(init=False, default=None)
|
||||
|
||||
def get_access_token(self, request):
|
||||
# type: (aiohttp.BaseRequest) -> str
|
||||
# type: (aiohttp.web.BaseRequest) -> str
|
||||
"""Extract the access token from the request.
|
||||
|
||||
This method extracts the access token either from the query string or
|
||||
@ -63,11 +63,11 @@ class ProxyDaemon:
|
||||
|
||||
async def forward_request(
|
||||
self,
|
||||
request,
|
||||
params=None,
|
||||
session=None
|
||||
request, # type: aiohttp.web.BaseRequest
|
||||
params=None, # type: CIMultiDict
|
||||
session=None # type: aiohttp.ClientSession
|
||||
):
|
||||
# type: (aiohttp.BaseRequest, aiohttp.ClientSession) -> str
|
||||
# type: (...) -> aiohttp.ClientResponse
|
||||
"""Forward the given request to our configured homeserver.
|
||||
|
||||
Args:
|
||||
@ -82,6 +82,8 @@ class ProxyDaemon:
|
||||
self.default_session = ClientSession()
|
||||
session = self.default_session
|
||||
|
||||
assert session
|
||||
|
||||
path = request.path
|
||||
method = request.method
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user