Sofie Van Landeghem
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
3 deletions
-
fastapi/security/api_key.py
-
pyproject.toml
|
|
@ -100,7 +100,7 @@ class APIKeyQuery(APIKeyBase): |
|
|
|
] = True, |
|
|
|
): |
|
|
|
self.model: APIKey = APIKey( |
|
|
|
**{"in": APIKeyIn.query}, # type: ignore[arg-type] |
|
|
|
**{"in": APIKeyIn.query}, |
|
|
|
name=name, |
|
|
|
description=description, |
|
|
|
) |
|
|
@ -188,7 +188,7 @@ class APIKeyHeader(APIKeyBase): |
|
|
|
] = True, |
|
|
|
): |
|
|
|
self.model: APIKey = APIKey( |
|
|
|
**{"in": APIKeyIn.header}, # type: ignore[arg-type] |
|
|
|
**{"in": APIKeyIn.header}, |
|
|
|
name=name, |
|
|
|
description=description, |
|
|
|
) |
|
|
@ -276,7 +276,7 @@ class APIKeyCookie(APIKeyBase): |
|
|
|
] = True, |
|
|
|
): |
|
|
|
self.model: APIKey = APIKey( |
|
|
|
**{"in": APIKeyIn.cookie}, # type: ignore[arg-type] |
|
|
|
**{"in": APIKeyIn.cookie}, |
|
|
|
name=name, |
|
|
|
description=description, |
|
|
|
) |
|
|
|
|
|
@ -142,6 +142,7 @@ source-includes = [ |
|
|
|
name = "fastapi-slim" |
|
|
|
|
|
|
|
[tool.mypy] |
|
|
|
plugins = ["pydantic.mypy"] |
|
|
|
strict = true |
|
|
|
|
|
|
|
[[tool.mypy.overrides]] |
|
|
|