mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Enable no_implicit_optional globally [mypy] (#76723)
This commit is contained in:
@ -54,6 +54,7 @@ GENERAL_SETTINGS: Final[dict[str, str]] = {
|
||||
# Enable some checks globally.
|
||||
"ignore_missing_imports": "true",
|
||||
"strict_equality": "true",
|
||||
"no_implicit_optional": "true",
|
||||
"warn_incomplete_stub": "true",
|
||||
"warn_redundant_casts": "true",
|
||||
"warn_unused_configs": "true",
|
||||
@ -74,7 +75,6 @@ STRICT_SETTINGS: Final[list[str]] = [
|
||||
"disallow_untyped_calls",
|
||||
"disallow_untyped_decorators",
|
||||
"disallow_untyped_defs",
|
||||
"no_implicit_optional",
|
||||
"warn_return_any",
|
||||
"warn_unreachable",
|
||||
# TODO: turn these on, address issues
|
||||
|
Reference in New Issue
Block a user