Clean up unneeded ruff noqa directives (#113616)

This commit is contained in:
Sid
2024-03-16 20:48:37 +01:00
committed by GitHub
parent c57dcacade
commit 6ee273a548
42 changed files with 48 additions and 63 deletions

View File

@ -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