mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Enable local_partial_types
for strict typing [mypy] (#86409)
This commit is contained in:
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",
|
||||
|
Reference in New Issue
Block a user