Skip to content

Commit

Permalink
🐛 Fixed argument passing
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed May 25, 2024
1 parent 807f89e commit 01b6ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion idae/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_python(
if python_version in target:
if use_latest:
return python
if is_python_cached(python.version) and cached_candidates is None:
if is_python_cached(python) and cached_candidates is None:
cached_candidates = python
elif uncached_candidates is None:
uncached_candidates = python
Expand Down
2 changes: 1 addition & 1 deletion idae/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Python:
executable: str | PathLike[str]


def is_python_cached(python: str) -> bool:
def is_python_cached(python: Python) -> bool:
"""Check if a Python version is cached."""
return (CACHE_DIR / f"{python.version.major}.{python.version.minor}").is_dir()

Expand Down

0 comments on commit 01b6ea7

Please sign in to comment.