Skip to content

Commit

Permalink
bug: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed May 25, 2024
1 parent 228ab0b commit 807f89e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions idae/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@


def get_python_or_exit(
version: str, console: Console, use_latest: bool,
version: str,
console: Console,
use_latest: bool,
) -> findpython.PythonVersion:
"""Return a PythonVersion or raise Exit."""
try:
Expand All @@ -28,7 +30,10 @@ def get_python_or_exit(
return output


def get_python(version: str, use_latest: bool) -> findpython.PythonVersion | None:
def get_python(
version: str,
use_latest: bool = True,
) -> findpython.PythonVersion | None:
"""Resolve the version string and return a valid Python."""
# Order from latest version to earliest
pythons = {python.version: python for python in findpython.find_all()}
Expand Down

0 comments on commit 807f89e

Please sign in to comment.