Skip to content

Commit

Permalink
Ignore mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
francbartoli committed Jul 29, 2024
1 parent 632b582 commit b92b563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/middleware/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
try:
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
user_info_or_auth_redirect = 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 b92b563

Please sign in to comment.