Skip to content

Commit

Permalink
Apply some ruff suggestions
Browse files Browse the repository at this point in the history
RUF100 Unused blanket `noqa` directive
RUF100 Unused `noqa` directive (non-enabled: `N818`)
  • Loading branch information
DimitriPapadopoulos committed Jan 13, 2024
1 parent 57a6a7f commit 3ac75b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packaging/_manylinux.py
Expand Up @@ -174,7 +174,7 @@ def _is_compatible(arch: str, version: _GLibCVersion) -> bool:
return False
# Check for presence of _manylinux module.
try:
import _manylinux # noqa
import _manylinux
except ImportError:
return True
if hasattr(_manylinux, "manylinux_compatible"):
Expand Down
2 changes: 1 addition & 1 deletion src/packaging/metadata.py
Expand Up @@ -44,7 +44,7 @@ def __init_subclass__(*_args, **_kwargs):
ExceptionGroup
except NameError: # pragma: no cover

class ExceptionGroup(Exception): # noqa: N818
class ExceptionGroup(Exception):
"""A minimal implementation of :external:exc:`ExceptionGroup` from Python 3.11.
If :external:exc:`ExceptionGroup` is already defined by Python itself,
Expand Down

0 comments on commit 3ac75b5

Please sign in to comment.