Skip to content

Incompatible return value type #4577

@wyli

Description

@wyli

Describe the bug
premerge mypy issue
https://github.com/Project-MONAI/MONAI/runs/7032166426?check_suite_focus=true

mypy 0.961 (compiled: yes)
monai/transforms/spatial/array.py:361:16: error: Incompatible return value type (got "Tuple[Union[ndarray[Any, Any], Tensor], Dict[Any, Any]]", expected "Tuple[Union[ndarray[Any, Any], Tensor], Union[ndarray[Any, Any], Tensor]]")  [return-value]
Found 1 error in 1 file (checked 867 source files)
Error: Process completed with exit code 1.

fixing this when merging the PR #4576

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