mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Enable error-code redundant-self
[mypy 1.0] (#87602)
This commit is contained in:
parent
4cecc28f8c
commit
fb4c0b4b7a
2
mypy.ini
2
mypy.ini
@ -14,7 +14,7 @@ warn_incomplete_stub = true
|
|||||||
warn_redundant_casts = true
|
warn_redundant_casts = true
|
||||||
warn_unused_configs = true
|
warn_unused_configs = true
|
||||||
warn_unused_ignores = true
|
warn_unused_ignores = true
|
||||||
enable_error_code = ignore-without-code, truthy-iterable
|
enable_error_code = ignore-without-code, redundant-self, truthy-iterable
|
||||||
disable_error_code = annotation-unchecked
|
disable_error_code = annotation-unchecked
|
||||||
strict_concatenate = false
|
strict_concatenate = false
|
||||||
check_untyped_defs = true
|
check_untyped_defs = true
|
||||||
|
@ -48,7 +48,13 @@ GENERAL_SETTINGS: Final[dict[str, str]] = {
|
|||||||
"warn_redundant_casts": "true",
|
"warn_redundant_casts": "true",
|
||||||
"warn_unused_configs": "true",
|
"warn_unused_configs": "true",
|
||||||
"warn_unused_ignores": "true",
|
"warn_unused_ignores": "true",
|
||||||
"enable_error_code": ", ".join(["ignore-without-code", "truthy-iterable"]),
|
"enable_error_code": ", ".join(
|
||||||
|
[
|
||||||
|
"ignore-without-code",
|
||||||
|
"redundant-self",
|
||||||
|
"truthy-iterable",
|
||||||
|
]
|
||||||
|
),
|
||||||
"disable_error_code": ", ".join(["annotation-unchecked"]),
|
"disable_error_code": ", ".join(["annotation-unchecked"]),
|
||||||
# Strict_concatenate breaks passthrough ParamSpec typing
|
# Strict_concatenate breaks passthrough ParamSpec typing
|
||||||
"strict_concatenate": "false",
|
"strict_concatenate": "false",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user