Clean up unneeded ruff noqa directives (#113616)
This commit is contained in:
parent
c57dcacade
commit
6ee273a548
42 changed files with 48 additions and 63 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue