From 26437439601edafd2f3569633f41df7806f09e0e Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Mon, 22 Apr 2024 20:18:57 -0700 Subject: [PATCH] python 3.9 compat --- .github/workflows/tests.yml | 1 + src/numpydantic/interface/hdf5.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b712f1..31f586e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,6 +27,7 @@ jobs: run: pytest - name: Report coverage + if: ${{ matrix.python-version }} == "3.11" run: "coveralls --service=github" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/numpydantic/interface/hdf5.py b/src/numpydantic/interface/hdf5.py index eeec1b8..fcde4d4 100644 --- a/src/numpydantic/interface/hdf5.py +++ b/src/numpydantic/interface/hdf5.py @@ -16,7 +16,7 @@ try: except ImportError: h5py = None -if sys.version_info.minor >= 3.10: +if sys.version_info.minor >= 10: from typing import TypeAlias H5Arraylike: TypeAlias = Tuple[Union[Path, str], str]