We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 228ab0b commit 807f89eCopy full SHA for 807f89e
idae/resolver.py
@@ -14,7 +14,9 @@
14
15
16
def get_python_or_exit(
17
- version: str, console: Console, use_latest: bool,
+ version: str,
18
+ console: Console,
19
+ use_latest: bool,
20
) -> findpython.PythonVersion:
21
"""Return a PythonVersion or raise Exit."""
22
try:
@@ -28,7 +30,10 @@ def get_python_or_exit(
28
30
return output
29
31
32
-def get_python(version: str, use_latest: bool) -> findpython.PythonVersion | None:
33
+def get_python(
34
35
+ use_latest: bool = True,
36
+) -> findpython.PythonVersion | None:
37
"""Resolve the version string and return a valid Python."""
38
# Order from latest version to earliest
39
pythons = {python.version: python for python in findpython.find_all()}
0 commit comments