Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Frank committed Oct 8, 2024
1 parent b44a76d commit f46a4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neuroagent/app/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
class HTTPBearerDirect(HTTPBearer):
"""HTTPBearer class that returns directly the token in the call."""

async def __call__(self, request: Request) -> str | None:
async def __call__(self, request: Request) -> str | None: # type: ignore
"""Intercept the bearer token in the headers."""
auth_credentials = await super().__call__(request)
return auth_credentials.credentials if auth_credentials else None
Expand Down

0 comments on commit f46a4d4

Please sign in to comment.