Remove unused noqas (#135583)

This commit is contained in:
Joost Lekkerkerker
2025-01-15 10:02:18 +01:00
committed by GitHub
parent f57640c2cd
commit 8a35261fd8
43 changed files with 58 additions and 62 deletions

View File

@ -674,11 +674,7 @@ def string(value: Any) -> str:
raise vol.Invalid("string value is None")
# This is expected to be the most common case, so check it first.
if (
type(value) is str # noqa: E721
or type(value) is NodeStrClass
or isinstance(value, str)
):
if type(value) is str or type(value) is NodeStrClass or isinstance(value, str):
return value
if isinstance(value, template_helper.ResultWrapper):