]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
🔧 Update mypy config, use `strict = true` instead of manual configs (#428)
authorMichael Oliver <michaeloliver__@outlook.com>
Mon, 23 Oct 2023 15:16:17 +0000 (16:16 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Oct 2023 15:16:17 +0000 (19:16 +0400)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
pyproject.toml

index 57426b5d2ab18eb63a7a3b1b984ef7b6e29efd1f..c7956daaa9ef40cdf23cdab0e354b5186de66843 100644 (file)
@@ -73,21 +73,7 @@ exclude_lines = [
 ]
 
 [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 = "sqlmodel.sql.expression"