From 59b538379ebcdf42dd795d3c135e1d4678dd04ff Mon Sep 17 00:00:00 2001 From: Jacob Magnusson Date: Sun, 20 Jun 2021 09:37:25 +0200 Subject: [PATCH] chore: mypy fix --- fastapi_security/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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], ), )