Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible return value type #4577

Closed
wyli opened this issue Jun 23, 2022 · 0 comments · Fixed by #4576
Closed

Incompatible return value type #4577

wyli opened this issue Jun 23, 2022 · 0 comments · Fixed by #4576

Comments

@wyli
Copy link
Contributor

wyli commented Jun 23, 2022

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

wyli added a commit to mueller-franzes/MONAI that referenced this issue Jun 23, 2022
Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit to mueller-franzes/MONAI that referenced this issue Jun 23, 2022
Signed-off-by: Wenqi Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant