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 22c9dec commit 3b29527Copy full SHA for 3b29527
services/api-server/src/simcore_service_api_server/db/events.py
@@ -1,4 +1,5 @@
1
import logging
2
+from typing import cast
3
4
from aiopg.sa import Engine, create_engine
5
from fastapi import FastAPI
@@ -83,4 +84,4 @@ async def asyncpg_close_db_connection(app: FastAPI) -> None:
83
84
85
86
def get_asyncpg_engine(app: FastAPI) -> AsyncEngine:
- return app.state.asyncpg_engine
87
+ return cast(AsyncEngine, app.state.asyncpg_engine)
0 commit comments