Skip to content

Commit

Permalink
fix a type: ignore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhsjdhjs committed Aug 26, 2024
1 parent 6fbed22 commit 4123d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async def handle_request(self, req: Request) -> Response:
def unauthorized(text: str) -> Response:
# config_auth_type can be None, but the function is not called in this case.
# Thus, we can ignore the type here.
return Response(status=401, headers={hdrs.WWW_AUTHENTICATE: config_auth_type}, # type: ignore[dict-item]
return Response(status=401, headers={hdrs.WWW_AUTHENTICATE: config_auth_type}, # type: ignore[arg-type]
text=text)

if config_auth_type is not None:
Expand Down

0 comments on commit 4123d0e

Please sign in to comment.