1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Enable error-code redundant-self [mypy 1.0] (#87602)

This commit is contained in:
Marc Mueller
2023-02-07 14:02:38 +01:00
committed by GitHub
parent 4cecc28f8c
commit fb4c0b4b7a
2 changed files with 8 additions and 2 deletions

View File

@@ -48,7 +48,13 @@ GENERAL_SETTINGS: Final[dict[str, str]] = {
"warn_redundant_casts": "true",
"warn_unused_configs": "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"]),
# Strict_concatenate breaks passthrough ParamSpec typing
"strict_concatenate": "false",