Adjustment: Make sure the recommended change is correct.
Explanation
The current recommended change is wrong.
Example
This is an example where the mentioned rule(s) would currently be suboptimal:
# Original
for interval in self.intervals:
if not interval.is_empty():
return False
return True
# Current replacement
return all(not interval.is_empty() for interval in self.intervals)
# Correct
return all(interval.is_empty() for interval in self.intervals)
Desired change
Explanation
The current recommended change is wrong.
Example
This is an example where the mentioned rule(s) would currently be suboptimal: