bugbear21.4.3

B002 Python does not support the unary prefix increment

Python does not support the unary prefix increment. Writing ++n is equivalent to +(+(n)), which equals n. You meant n += 1.