From ba76e722b1a7834d9daea97b9560633c5ff0cb7e Mon Sep 17 00:00:00 2001 From: svlandeg Date: Tue, 16 Sep 2025 13:48:17 +0200 Subject: [PATCH] remove pydantic mypy plugin (cf PR 14081) --- fastapi/security/api_key.py | 6 +++--- pyproject.toml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fastapi/security/api_key.py b/fastapi/security/api_key.py index 6d6dd01d9..70c2dca8a 100644 --- a/fastapi/security/api_key.py +++ b/fastapi/security/api_key.py @@ -100,7 +100,7 @@ class APIKeyQuery(APIKeyBase): ] = True, ): self.model: APIKey = APIKey( - **{"in": APIKeyIn.query}, + **{"in": APIKeyIn.query}, # type: ignore[arg-type] name=name, description=description, ) @@ -188,7 +188,7 @@ class APIKeyHeader(APIKeyBase): ] = True, ): self.model: APIKey = APIKey( - **{"in": APIKeyIn.header}, + **{"in": APIKeyIn.header}, # type: ignore[arg-type] name=name, description=description, ) @@ -276,7 +276,7 @@ class APIKeyCookie(APIKeyBase): ] = True, ): self.model: APIKey = APIKey( - **{"in": APIKeyIn.cookie}, + **{"in": APIKeyIn.cookie}, # type: ignore[arg-type] name=name, description=description, ) diff --git a/pyproject.toml b/pyproject.toml index 9961b74fa..1c540e2f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,7 +123,6 @@ source-includes = [ name = "fastapi-slim" [tool.mypy] -plugins = ["pydantic.mypy"] strict = true [[tool.mypy.overrides]]