Skip to content

Commit 12177fb

Browse files
committed
extras are normalized, per PEP685
1 parent bf5fb6f commit 12177fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/poetry/core/masonry/metadata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77

88
if TYPE_CHECKING:
9+
from packaging.utils import NormalizedName
10+
911
from poetry.core.packages.package import Package
1012

1113

@@ -41,7 +43,7 @@ class Metadata:
4143

4244
# Version 2.1
4345
description_content_type: str | None = None
44-
provides_extra: list[str] = [] # noqa: RUF012
46+
provides_extra: list[NormalizedName] = [] # noqa: RUF012
4547

4648
@classmethod
4749
def from_package(cls, package: Package) -> Metadata:

0 commit comments

Comments
 (0)