We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7e1d39 commit c56a1e1Copy full SHA for c56a1e1
packages/service-library/src/servicelib/aiohttp/client_session.py
@@ -1,5 +1,4 @@
1
from collections.abc import AsyncGenerator
2
-from typing import cast
3
4
from aiohttp import ClientSession, ClientTimeout, web
5
from common_library.json_serialization import json_dumps
@@ -42,7 +41,7 @@ async def persistent_client_session(app: web.Application) -> AsyncGenerator[None
42
41
def get_client_session(app: web.Application) -> ClientSession:
43
"""Refers to the one-and-only client in the app"""
44
assert APP_CLIENT_SESSION_KEY in app # nosec
45
- return cast(ClientSession, app[APP_CLIENT_SESSION_KEY])
+ return app[APP_CLIENT_SESSION_KEY]
46
47
48
__all__: tuple[str, ...] = (
0 commit comments