Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
Signed-off-by: KumoLiu <[email protected]>
  • Loading branch information
KumoLiu committed Nov 10, 2023
1 parent 520e2b3 commit 32d4412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/data/grid_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def _load_cache_item(self, idx: int):
patch_cache, other_cache = [], []
for patch, *others in self.patch_iter(item):
if self.first_random is not None:
patch = self.patch_transform(patch, end=self.first_random, threading=True)
patch = self.patch_transform(patch, end=self.first_random, threading=True) # type: ignore

if self.as_contiguous:
patch = convert_to_contiguous(patch, memory_format=torch.contiguous_format)
Expand Down

0 comments on commit 32d4412

Please sign in to comment.