mirror of https://github.com/tiangolo/fastapi.git
🚨 Install pydantic.mypy plugin (#14081)
This commit is contained in:
parent
d2da9e8e46
commit
fe4542279d
|
|
@ -100,7 +100,7 @@ class APIKeyQuery(APIKeyBase):
|
||||||
] = True,
|
] = True,
|
||||||
):
|
):
|
||||||
self.model: APIKey = APIKey(
|
self.model: APIKey = APIKey(
|
||||||
**{"in": APIKeyIn.query}, # type: ignore[arg-type]
|
**{"in": APIKeyIn.query},
|
||||||
name=name,
|
name=name,
|
||||||
description=description,
|
description=description,
|
||||||
)
|
)
|
||||||
|
|
@ -188,7 +188,7 @@ class APIKeyHeader(APIKeyBase):
|
||||||
] = True,
|
] = True,
|
||||||
):
|
):
|
||||||
self.model: APIKey = APIKey(
|
self.model: APIKey = APIKey(
|
||||||
**{"in": APIKeyIn.header}, # type: ignore[arg-type]
|
**{"in": APIKeyIn.header},
|
||||||
name=name,
|
name=name,
|
||||||
description=description,
|
description=description,
|
||||||
)
|
)
|
||||||
|
|
@ -276,7 +276,7 @@ class APIKeyCookie(APIKeyBase):
|
||||||
] = True,
|
] = True,
|
||||||
):
|
):
|
||||||
self.model: APIKey = APIKey(
|
self.model: APIKey = APIKey(
|
||||||
**{"in": APIKeyIn.cookie}, # type: ignore[arg-type]
|
**{"in": APIKeyIn.cookie},
|
||||||
name=name,
|
name=name,
|
||||||
description=description,
|
description=description,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ source-includes = [
|
||||||
name = "fastapi-slim"
|
name = "fastapi-slim"
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
|
plugins = ["pydantic.mypy"]
|
||||||
strict = true
|
strict = true
|
||||||
|
|
||||||
[[tool.mypy.overrides]]
|
[[tool.mypy.overrides]]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue