]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔧 Update mypy config, use `strict = true` instead of manual configs (#4605)
authorMichael Oliver <michael.oliver@res-group.com>
Fri, 26 Aug 2022 13:25:02 +0000 (14:25 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Aug 2022 13:25:02 +0000 (15:25 +0200)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
pyproject.toml

index 9263985ce0e3a105c9eba454997399604b74ff86..3b77b113b9217a56acdea385686b7ed392d2190a 100644 (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"