Problem
The to_pad argument has type hint tuple[tuple[int, int]]. This means a tuple that contains a single tuple of 2 ints. We want to be able to pass a tuple for every dimension.
Proposed fix
Set type hint to Sequence[tuple[int, int]] instead.
Affected files
monai/transforms/croppad/functional.py (line 153)
Problem
The
to_padargument has type hinttuple[tuple[int, int]]. This means a tuple that contains a single tuple of 2 ints. We want to be able to pass a tuple for every dimension.Proposed fix
Set type hint to
Sequence[tuple[int, int]]instead.Affected files
monai/transforms/croppad/functional.py(line 153)