Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 31, 2023
1 parent 4090c36 commit 5567000
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions monai/transforms/spatial/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3476,7 +3476,7 @@ def __init__(
upsample_mode: InterpolateMode | str = InterpolateMode.TRILINEAR,
zoom_range: Sequence[float] = (0.5, 1.0),
align_corners=False,
device: Optional[torch.device] = None,
device: torch.device | None = None,
) -> None:
"""
Args:
Expand All @@ -3500,7 +3500,7 @@ def __init__(
self.device = device
self.zoom_factor = 1

def randomize(self, data: Optional[Any] = None) -> None:
def randomize(self, data: Any | None = None) -> None:
super().randomize(None)
self.zoom_factor = self.R.uniform(self.zoom_range[0], self.zoom_range[1])
if not self._do_transform:
Expand Down
2 changes: 1 addition & 1 deletion monai/transforms/spatial/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -2582,7 +2582,7 @@ def __init__(

def set_random_state(
self, seed: int | None = None, state: np.random.RandomState | None = None
) -> "RandSimulateLowResolutiond":
) -> RandSimulateLowResolutiond:
super().set_random_state(seed, state)
return self

Expand Down

0 comments on commit 5567000

Please sign in to comment.