I understand that a statement like
if x > y and y > z:
pass
can be simplified to
if x > y > z:
pass
but honestly I prefer to have the first one, don't judge me please. Is there a way to disable this option in PyCharm, or maybe a way to not get that warning anymore?
Navigate to
Editor>Inspectionsin settings, and under "Python" uncheck the option "Too complex chained comparisons".The description for this inspection is as follows.