mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 11:18:00 +02:00
Clean up unneeded ruff noqa directives (#113616)
This commit is contained in:
@ -625,7 +625,7 @@ def string(value: Any) -> str:
|
||||
# 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 # noqa: E721
|
||||
or type(value) is NodeStrClass
|
||||
or isinstance(value, str)
|
||||
):
|
||||
return value
|
||||
|
Reference in New Issue
Block a user