Browse Source

remove pydantic mypy plugin (cf PR 14081)

pull/12970/head
svlandeg 10 months ago
parent
commit
ba76e722b1
  1. 6
      fastapi/security/api_key.py
  2. 1
      pyproject.toml

6
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,
)

1
pyproject.toml

@ -123,7 +123,6 @@ source-includes = [
name = "fastapi-slim"
[tool.mypy]
plugins = ["pydantic.mypy"]
strict = true
[[tool.mypy.overrides]]

Loading…
Cancel
Save