Skip to content

Commit

Permalink
Fallback on import newer numpy.testing module
Browse files Browse the repository at this point in the history
  • Loading branch information
talmo committed Sep 12, 2023
1 parent e0ead82 commit f7a3964
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit f7a3964

Please sign in to comment.