Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback on import newer numpy.testing module #65

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Programming Language :: Python :: 3.9"
]
dependencies = [
"numpy>=1.19.5",
"numpy>=1.19.2",
"attrs>=21.2.0",
"h5py>=3.1.0",
"pynwb",
Expand Down
6 changes: 5 additions & 1 deletion sleap_io/io/nwb.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

import pandas as pd # type: ignore[import]
import numpy as np
from numpy.typing import ArrayLike

try:
from numpy.typing import ArrayLike
except ImportError:
ArrayLike = np.ndarray

Check warning on line 15 in sleap_io/io/nwb.py

View check run for this annotation

Codecov / codecov/patch

sleap_io/io/nwb.py#L14-L15

Added lines #L14 - L15 were not covered by tests
from pynwb import NWBFile, NWBHDF5IO, ProcessingModule # type: ignore[import]
from ndx_pose import PoseEstimationSeries, PoseEstimation # type: ignore[import]

Expand Down