Skip to content

Incorrect type hint in pad_func #9026

Description

@Jorissss

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions