We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8bbbe6 commit e55ecb0Copy full SHA for e55ecb0
src/poetry/core/packages/package.py
@@ -4,6 +4,7 @@
4
5
from typing import TYPE_CHECKING
6
from typing import ClassVar
7
+from typing import TypedDict
8
from typing import TypeVar
9
10
from packaging.utils import canonicalize_name
@@ -36,6 +37,11 @@
36
37
T = TypeVar("T", bound="Package")
38
39
40
+class PackageFile(TypedDict):
41
+ file: str
42
+ hash: str
43
+
44
45
class Package(PackageSpecification):
46
AVAILABLE_PYTHONS: ClassVar[set[str]] = {
47
"2",
@@ -112,7 +118,7 @@ def __init__(
112
118
113
119
self._dependency_groups: Mapping[NormalizedName, DependencyGroup] = {}
114
120
115
- self.files: Sequence[Mapping[str, str]] = []
121
+ self.files: Sequence[PackageFile] = []
116
122
self.optional = False
117
123
124
self.classifiers: Sequence[str] = []
0 commit comments