Skip to content

Commit 4d5045b

Browse files
authored
Fix python3.8 type compatibility (#722)
The tuple type helper isn't supported in python3.8, which is currently the version macOS has in /usr/bin/python3.
1 parent d1d2308 commit 4d5045b

File tree

1 file changed

+2
-2
lines changed
  • python/pip_install/extract_wheels/lib

1 file changed

+2
-2
lines changed

python/pip_install/extract_wheels/lib/wheel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import stat
66
import zipfile
7-
from typing import Dict, Optional, Set
7+
from typing import Dict, Optional, Set, Tuple
88

99
import installer
1010
import pkg_resources
@@ -52,7 +52,7 @@ def version(self) -> str:
5252
# TODO Also available as installer.sources.WheelSource.version
5353
return str(self.metadata["Version"])
5454

55-
def entry_points(self) -> Dict[str, tuple[str, str]]:
55+
def entry_points(self) -> Dict[str, Tuple[str, str]]:
5656
"""Returns the entrypoints defined in the current wheel
5757
5858
See https://packaging.python.org/specifications/entry-points/ for more info

0 commit comments

Comments
 (0)