Skip to content

syntax warning of literal #3783

@wyli

Description

@wyli

Describe the bug
command:

./runtests.sh --clean; python -W error -c "import monai"

outcome:

  File "/Users/Documents/MONAI/monai/transforms/spatial/array.py", line 176
    if spatial_size is not -1 and spatial_size is not None:
       ^
SyntaxError: "is not" with a literal. Did you mean "!="?

Metadata

Metadata

Assignees

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