Skip to content

Commit

Permalink
Ensure hatch is installed with the correct Python version in CI (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson authored Aug 1, 2024
1 parent ffe4991 commit 04ef5e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-kr8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install hatch
run: pipx install hatch
run: pip install hatch
- name: Run tests
env:
KUBERNETES_VERSION: ${{ matrix.kubernetes-version }}
Expand Down
5 changes: 4 additions & 1 deletion kr8s/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@

_KT = TypeVar("_KT")
_VT_co = TypeVar("_VT_co", covariant=True)
PathType = Union[str, PathLike[str]]
PathType = Union[
str,
"PathLike[str]", # Can remove quotes when Python 3.9 is the minimum version.
]

if TYPE_CHECKING:
from ._objects import Pod
Expand Down

0 comments on commit 04ef5e9

Please sign in to comment.