mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-10 00:34:29 +00:00
python 3.9 compat
This commit is contained in:
parent
2e5d0f4192
commit
2643743960
2 changed files with 2 additions and 1 deletions
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
|
@ -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 }}
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue