Skip to content

Commit

Permalink
extras are normalized, per PEP685
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Mar 2, 2024
1 parent bf5fb6f commit 12177fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/poetry/core/masonry/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@


if TYPE_CHECKING:
from packaging.utils import NormalizedName

from poetry.core.packages.package import Package


Expand Down Expand Up @@ -41,7 +43,7 @@ class Metadata:

# Version 2.1
description_content_type: str | None = None
provides_extra: list[str] = [] # noqa: RUF012
provides_extra: list[NormalizedName] = [] # noqa: RUF012

@classmethod
def from_package(cls, package: Package) -> Metadata:
Expand Down

0 comments on commit 12177fb

Please # to comment.