Use variable annotations instead of workarounds

This commit is contained in:
Yannick Jadoul
2020-05-06 23:55:54 +02:00
parent 5bdb21b705
commit 1a765ac431
6 changed files with 36 additions and 31 deletions
+5 -1
View File
@@ -34,7 +34,11 @@ def get_nuget_args(version: str, arch: str) -> List[str]:
return [python_name, '-Version', version, '-OutputDirectory', 'C:\\cibw\\python']
PythonConfiguration = NamedTuple('PythonConfiguration', [('version', str), ('arch', str), ('identifier', str), ('url', Optional[str])])
class PythonConfiguration(NamedTuple):
version: str
arch: str
identifier: str
url: Optional[str]
def get_python_configurations(build_selector: Callable[[str], bool]) -> List[PythonConfiguration]: