Enable `local_partial_types` for strict typing [mypy] (#86409)

pull/87603/head
Marc Mueller 2023-02-07 03:41:39 +01:00 committed by GitHub
parent 687d326bb4
commit af59623601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ python_version = 3.10
show_error_codes = true
follow_imports = silent
ignore_missing_imports = true
local_partial_types = true
strict_equality = true
no_implicit_optional = true
warn_incomplete_stub = true

View File

@ -41,6 +41,7 @@ GENERAL_SETTINGS: Final[dict[str, str]] = {
"follow_imports": "silent",
# Enable some checks globally.
"ignore_missing_imports": "true",
"local_partial_types": "true",
"strict_equality": "true",
"no_implicit_optional": "true",
"warn_incomplete_stub": "true",