diff --git a/fastapi_security/api.py b/fastapi_security/api.py index ef63c2f..0fa9d52 100644 --- a/fastapi_security/api.py +++ b/fastapi_security/api.py @@ -220,7 +220,7 @@ async def dependency( raise HTTPException( status_code=401, detail="Could not validate credentials", - headers=Headers( + headers=Headers( # type: ignore[arg-type] raw=[(b"WWW-Authenticate", o.encode("latin-1")) for o in options], ), )