python 3.9 compat

This commit is contained in:
sneakers-the-rat 2024-04-22 20:18:57 -07:00
parent 2e5d0f4192
commit 2643743960
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@ jobs:
run: pytest run: pytest
- name: Report coverage - name: Report coverage
if: ${{ matrix.python-version }} == "3.11"
run: "coveralls --service=github" run: "coveralls --service=github"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -16,7 +16,7 @@ try:
except ImportError: except ImportError:
h5py = None h5py = None
if sys.version_info.minor >= 3.10: if sys.version_info.minor >= 10:
from typing import TypeAlias from typing import TypeAlias
H5Arraylike: TypeAlias = Tuple[Union[Path, str], str] H5Arraylike: TypeAlias = Tuple[Union[Path, str], str]