Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Oct 9, 2023
1 parent 5204231 commit 80b00bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/packaging/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init_subclass__(*_args, **_kwargs):
ExceptionGroup
except NameError: # pragma: no cover

class ExceptionGroup(Exception): # type: ignore[no-redef] # 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 Expand Up @@ -680,7 +680,7 @@ def from_raw(cls, data: RawMetadata, *, validate: bool = True) -> "Metadata":
ins._raw = data.copy() # Mutations occur due to caching enriched values.

if validate:
exceptions: List[InvalidMetadata] = []
exceptions: List[Exception] = []
try:
metadata_version = ins.metadata_version
metadata_age = _VALID_METADATA_VERSIONS.index(metadata_version)
Expand Down Expand Up @@ -738,7 +738,7 @@ def from_email(
raw, unparsed = parse_email(data)

if validate:
exceptions: list[InvalidMetadata] = []
exceptions: list[Exception] = []
for unparsed_key in unparsed:
if unparsed_key in _EMAIL_TO_RAW_MAPPING:
message = f"{unparsed_key!r} has invalid data"
Expand Down

0 comments on commit 80b00bc

Please # to comment.