Simplify mypy settings (#12823)

This commit is contained in:
danieleades 2024-08-31 08:13:11 +01:00 committed by GitHub
parent 6a07bfcb78
commit bb2c4e9bac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -196,22 +196,12 @@ exclude = [
"^tests/test_util/typing_test_data\\.py$",
# tests/test_writers
]
check_untyped_defs = true
python_version = "3.10"
strict = true
show_column_numbers = true
show_error_context = true
strict_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_reexport = true
extra_checks = true
strict_equality = false
warn_return_any = false
enable_error_code = [
"type-arg",
"redundant-self",