Reconfigure mypy

This commit is contained in:
monosans
2023-11-14 00:44:05 +03:00
parent fa88a3f94e
commit e4f05243c6
+3 -1
View File
@@ -1,12 +1,12 @@
[tool.mypy]
python_version = "3.8"
platform = "linux"
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
warn_unreachable = true
local_partial_types = true
enable_error_code = [
"explicit-override",
"redundant-self",
"redundant-expr",
"possibly-undefined",
@@ -14,6 +14,7 @@ enable_error_code = [
"truthy-iterable",
"ignore-without-code",
"unused-awaitable",
"explicit-override",
]
strict = true
@@ -95,3 +96,4 @@ convention = "google"
[tool.ruff.pyupgrade]
keep-runtime-typing = true
keep-runtime-typing = true