Skip to content

Commit 27f6a7d

Browse files
authored
Revert mypy_config formatting (#115518)
1 parent 84a975b commit 27f6a7d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

script/hassfest/mypy_config.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,20 @@
4343
"warn_redundant_casts": "true",
4444
"warn_unused_configs": "true",
4545
"warn_unused_ignores": "true",
46-
"enable_error_code": "ignore-without-code, redundant-self, truthy-iterable",
47-
"disable_error_code": "annotation-unchecked, import-not-found, import-untyped",
46+
"enable_error_code": ", ".join( # noqa: FLY002
47+
[
48+
"ignore-without-code",
49+
"redundant-self",
50+
"truthy-iterable",
51+
]
52+
),
53+
"disable_error_code": ", ".join( # noqa: FLY002
54+
[
55+
"annotation-unchecked",
56+
"import-not-found",
57+
"import-untyped",
58+
]
59+
),
4860
# Impractical in real code
4961
# E.g. this breaks passthrough ParamSpec typing with Concatenate
5062
"extra_checks": "false",

0 commit comments

Comments
 (0)