Skip to content

Commit

Permalink
avoid 'ABCMeta' object is not subscriptable
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Aug 21, 2024
1 parent e5d83ba commit 6147d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bioimageio/core/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def load_tensor(path: Path, axes: Optional[Sequence[AxisLike]] = None) -> Tensor
return Tensor.from_numpy(array, dims=axes)


def save_tensor(path: PathLike[str], tensor: Tensor) -> None:
def save_tensor(path: Path, tensor: Tensor) -> None:
# TODO: save axis meta data

data: NDArray[Any] = tensor.data.to_numpy()
Expand Down

0 comments on commit 6147d4d

Please sign in to comment.