Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 23, 2024
1 parent 40d85d2 commit 68699ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/api/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
TokenDep = Annotated[str, Depends(reusable_oauth2)]


async def get_db_conn() -> AsyncGenerator[asyncpg.Connection, None]:
async def get_db_conn() -> AsyncGenerator[asyncpg.Connection]:
if db.pool is None:
logger.error("No database pool created")
raise HTTPException(
Expand All @@ -41,7 +41,7 @@ async def get_db_conn() -> AsyncGenerator[asyncpg.Connection, None]:
DbConn = Annotated[asyncpg.Connection, Depends(get_db_conn)]


async def get_cache_client() -> AsyncGenerator[valkey.Valkey, None]:
async def get_cache_client() -> AsyncGenerator[valkey.Valkey]:
if cache.client is None:
logger.error("No cache client created")
raise HTTPException(
Expand Down

0 comments on commit 68699ae

Please sign in to comment.