🔧 Update mypy config, use `strict = true` instead of manual configs (#4605)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Michael Oliver 2022-08-26 14:25:02 +01:00 committed by GitHub
parent 26097421d3
commit 8cd8aa4b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 15 deletions

View File

@ -104,21 +104,7 @@ profile = "black"
known_third_party = ["fastapi", "pydantic", "starlette"]
[tool.mypy]
# --strict
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
implicit_reexport = false
strict_equality = true
# --strict end
strict = true
[[tool.mypy.overrides]]
module = "fastapi.concurrency"