Skip to content

Commit 807f89e

Browse files
committed
bug: fix tests
1 parent 228ab0b commit 807f89e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

idae/resolver.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515

1616
def get_python_or_exit(
17-
version: str, console: Console, use_latest: bool,
17+
version: str,
18+
console: Console,
19+
use_latest: bool,
1820
) -> findpython.PythonVersion:
1921
"""Return a PythonVersion or raise Exit."""
2022
try:
@@ -28,7 +30,10 @@ def get_python_or_exit(
2830
return output
2931

3032

31-
def get_python(version: str, use_latest: bool) -> findpython.PythonVersion | None:
33+
def get_python(
34+
version: str,
35+
use_latest: bool = True,
36+
) -> findpython.PythonVersion | None:
3237
"""Resolve the version string and return a valid Python."""
3338
# Order from latest version to earliest
3439
pythons = {python.version: python for python in findpython.find_all()}

0 commit comments

Comments
 (0)