From 27f6a7de43420ff32b990c41af256467fc01d143 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sat, 13 Apr 2024 10:48:34 +0200 Subject: [PATCH] Revert mypy_config formatting (#115518) --- script/hassfest/mypy_config.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index c6c5907cdb9..76fe47837e4 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -43,8 +43,20 @@ GENERAL_SETTINGS: Final[dict[str, str]] = { "warn_redundant_casts": "true", "warn_unused_configs": "true", "warn_unused_ignores": "true", - "enable_error_code": "ignore-without-code, redundant-self, truthy-iterable", - "disable_error_code": "annotation-unchecked, import-not-found, import-untyped", + "enable_error_code": ", ".join( # noqa: FLY002 + [ + "ignore-without-code", + "redundant-self", + "truthy-iterable", + ] + ), + "disable_error_code": ", ".join( # noqa: FLY002 + [ + "annotation-unchecked", + "import-not-found", + "import-untyped", + ] + ), # Impractical in real code # E.g. this breaks passthrough ParamSpec typing with Concatenate "extra_checks": "false",