---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
---
B002 Python does not support the unary prefix increment operator (`++`)
  --> B002.py:18:9
   |
17 | def this_is_buggy(n):
18 |     x = ++n
   |         ^^^
19 |     y = --n
20 |     return x, y
   |

B002 Python does not support the unary prefix decrement operator (`--`)
  --> B002.py:19:9
   |
17 | def this_is_buggy(n):
18 |     x = ++n
19 |     y = --n
   |         ^^^
20 |     return x, y
   |

B002 Python does not support the unary prefix increment operator (`++`)
  --> B002.py:24:12
   |
23 | def this_is_buggy_too(n):
24 |     return ++n, --n
   |            ^^^
   |

B002 Python does not support the unary prefix decrement operator (`--`)
  --> B002.py:24:17
   |
23 | def this_is_buggy_too(n):
24 |     return ++n, --n
   |                 ^^^
   |
