The constant is placed on the left side of a comparison. It is usually clearer in intent to place it in the right hand side of the comparison. Not preferred: python if 0 == x % 2: ... Preferred: python if x % 2 == 0: ...
Occurrences
There are 2 occurrences of this issue in the repository.
Description
The constant is placed on the left side of a comparison. It is usually clearer in intent to place it in the right hand side of the comparison. Not preferred:
python if 0 == x % 2: ...
Preferred:python if x % 2 == 0: ...
Occurrences
There are 2 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/gil-uav/semantic-image-segmentation/issue/PYL-C0122/occurrences/