Enable local_partial_types
for strict typing [mypy] (#86409)
This commit is contained in:
parent
687d326bb4
commit
af59623601
2 changed files with 2 additions and 0 deletions
1
mypy.ini
1
mypy.ini
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue