diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe88ee7..067e7a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,11 +9,11 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.0 hooks: - id: mypy - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.3 + rev: v0.8.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/backend/app/api/deps.py b/backend/app/api/deps.py index 0440e53..b12280d 100644 --- a/backend/app/api/deps.py +++ b/backend/app/api/deps.py @@ -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( @@ -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(