Skip to content

Commit c56a1e1

Browse files
committed
clenaup
1 parent e7e1d39 commit c56a1e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/service-library/src/servicelib/aiohttp/client_session.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from collections.abc import AsyncGenerator
2-
from typing import cast
32

43
from aiohttp import ClientSession, ClientTimeout, web
54
from common_library.json_serialization import json_dumps
@@ -42,7 +41,7 @@ async def persistent_client_session(app: web.Application) -> AsyncGenerator[None
4241
def get_client_session(app: web.Application) -> ClientSession:
4342
"""Refers to the one-and-only client in the app"""
4443
assert APP_CLIENT_SESSION_KEY in app # nosec
45-
return cast(ClientSession, app[APP_CLIENT_SESSION_KEY])
44+
return app[APP_CLIENT_SESSION_KEY]
4645

4746

4847
__all__: tuple[str, ...] = (

0 commit comments

Comments
 (0)