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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 48 additions and 63 deletions

View file

@ -278,7 +278,7 @@ def check_if_deprecated_constant(name: str, module_globals: dict[str, Any]) -> A
# specifies that __getattr__ should raise AttributeError if the attribute is not
# found.
# https://peps.python.org/pep-0562/#specification
raise AttributeError(msg) # noqa: TRY004
raise AttributeError(msg)
_print_deprecation_warning_internal(
name,