Skip to content

Incompatible types in assignment issue #7947

Closed

Description

@KumoLiu
mypy 1.11.0 (compiled: yes)
monai/transforms/croppad/functional.py:51:18: error: Incompatible types in assignment (expression has type "NdarrayTensor", variable has type "ndarray[Any, Any]")  [assignment]
monai/visualize/img2tensorboard.py:179:21: error: Incompatible types in assignment (expression has type "Union[ndarray[Any, Any], Any, NdarrayTensor]", variable has type "ndarray[Any, Any]")  [assignment]
monai/metrics/cumulative_average.py:76:19: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", variable has type "Tensor")  [assignment]
monai/metrics/cumulative_average.py:102:19: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", variable has type "Tensor")  [assignment]
monai/metrics/rocauc.py:91:9: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", variable has type "Tensor")  [assignment]
monai/metrics/rocauc.py:92:14: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", variable has type "Tensor")  [assignment]
monai/metrics/panoptic_quality.py:277:20: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", variable has type "Tensor")  [assignment]
monai/auto3dseg/analyzer.py:473:28: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", variable has type "MetaTensor")  [assignment]
Found 8 errors in 6 files (checked 1179 source files)

Activity

  1. added a commit that references this issue on Jul 25, 2024
    918219b
  2. added a commit that references this issue on Jul 25, 2024
    3f0c768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions