Skip to content

Commit 5ed4365

Browse files
committed
fix
1 parent 1d503be commit 5ed4365

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/core/deps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Dependencies
33
"""
44

5-
from typing import Annotated, AsyncGenerator
5+
from typing import Annotated, Any, AsyncGenerator
66

77
from fastapi import Depends
88
from fastapi.security import APIKeyHeader
@@ -13,7 +13,7 @@
1313
from app.models.user import User
1414

1515

16-
async def get_db() -> AsyncGenerator[Database]:
16+
async def get_db() -> AsyncGenerator[Database, Any]:
1717
async with SessionLocal() as session:
1818
yield Database(session)
1919

@@ -30,7 +30,7 @@ async def get_logic(
3030

3131

3232
async def get_current_user(
33-
token: Annotated[str, Depends(APIKeyHeader(name='access-token'))],
33+
token: Annotated[str, Depends(APIKeyHeader(name="access-token"))],
3434
logic: Annotated[Logic, Depends(get_logic)],
3535
) -> User | None:
3636
return await logic.users.retrieve_by_token(token)

0 commit comments

Comments
 (0)