We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc554ed commit 8f89997Copy full SHA for 8f89997
src/pip/_internal/models/link.py
@@ -99,10 +99,10 @@ def is_hash_allowed(self, hashes: Optional[Hashes]) -> bool:
99
class MetadataFile:
100
"""Information about a core metadata file associated with a distribution."""
101
102
- hashes: Optional[dict[str, str]]
+ hashes: Optional[Dict[str, str]]
103
104
# TODO: Do we care about stripping out unsupported hash methods?
105
- def __init__(self, hashes: Optional[dict[str, str]]):
+ def __init__(self, hashes: Optional[Dict[str, str]]):
106
if hashes:
107
hashes = {n: v for n, v in hashes.items() if n in _SUPPORTED_HASHES}
108
# We need to use this as this is a frozen dataclass
0 commit comments