Skip to content

Commit

Permalink
Fix ignoring mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
francbartoli committed Jul 29, 2024
1 parent 3c87e05 commit 9923336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/middleware/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
user_info_or_auth_redirect = auth.authenticate(request)
if asyncio.iscoroutine(user_info_or_auth_redirect):
user_info_or_auth_redirect = (
await user_info_or_auth_redirect
) # type:ignore
await user_info_or_auth_redirect # type:ignore
)
logger.debug(
f"user info taken from jwt is: {user_info_or_auth_redirect}"
)
Expand Down

0 comments on commit 9923336

Please sign in to comment.