Skip to content

Commit 8f89997

Browse files
committed
Fix types to be 3.7-compatible
1 parent cc554ed commit 8f89997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pip/_internal/models/link.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ def is_hash_allowed(self, hashes: Optional[Hashes]) -> bool:
9999
class MetadataFile:
100100
"""Information about a core metadata file associated with a distribution."""
101101

102-
hashes: Optional[dict[str, str]]
102+
hashes: Optional[Dict[str, str]]
103103

104104
# TODO: Do we care about stripping out unsupported hash methods?
105-
def __init__(self, hashes: Optional[dict[str, str]]):
105+
def __init__(self, hashes: Optional[Dict[str, str]]):
106106
if hashes:
107107
hashes = {n: v for n, v in hashes.items() if n in _SUPPORTED_HASHES}
108108
# We need to use this as this is a frozen dataclass

0 commit comments

Comments
 (0)