Skip to content

Commit a987a94

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d052a5f commit a987a94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monai/data/image_reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def read(self, data: Sequence[PathLike] | PathLike, **kwargs):
949949
img_.append(img) # type: ignore
950950
return img_ if len(filenames) > 1 else img_[0]
951951

952-
def get_data(self, img) -> tuple[np.ndarray | "cp.ndarray", dict]:
952+
def get_data(self, img) -> tuple[np.ndarray | cp.ndarray, dict]:
953953
"""
954954
Extract data array and metadata from loaded image and return them.
955955
This function returns two objects, first is numpy array of image data, second is dict of metadata.
@@ -961,7 +961,7 @@ def get_data(self, img) -> tuple[np.ndarray | "cp.ndarray", dict]:
961961
img: a Nibabel image object loaded from an image file or a list of Nibabel image objects.
962962
963963
"""
964-
img_array: list[np.ndarray | "cp.ndarray"] = []
964+
img_array: list[np.ndarray | cp.ndarray] = []
965965
compatible_meta: dict = {}
966966

967967
for i, filename in zip(ensure_tuple(img), self.filenames):

0 commit comments

Comments
 (0)