mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Enable local_partial_types
for strict typing [mypy] (#86409)
This commit is contained in:
parent
687d326bb4
commit
af59623601
1
mypy.ini
1
mypy.ini
@ -7,6 +7,7 @@ python_version = 3.10
|
|||||||
show_error_codes = true
|
show_error_codes = true
|
||||||
follow_imports = silent
|
follow_imports = silent
|
||||||
ignore_missing_imports = true
|
ignore_missing_imports = true
|
||||||
|
local_partial_types = true
|
||||||
strict_equality = true
|
strict_equality = true
|
||||||
no_implicit_optional = true
|
no_implicit_optional = true
|
||||||
warn_incomplete_stub = true
|
warn_incomplete_stub = true
|
||||||
|
@ -41,6 +41,7 @@ GENERAL_SETTINGS: Final[dict[str, str]] = {
|
|||||||
"follow_imports": "silent",
|
"follow_imports": "silent",
|
||||||
# Enable some checks globally.
|
# Enable some checks globally.
|
||||||
"ignore_missing_imports": "true",
|
"ignore_missing_imports": "true",
|
||||||
|
"local_partial_types": "true",
|
||||||
"strict_equality": "true",
|
"strict_equality": "true",
|
||||||
"no_implicit_optional": "true",
|
"no_implicit_optional": "true",
|
||||||
"warn_incomplete_stub": "true",
|
"warn_incomplete_stub": "true",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user