---
source: crates/ruff_linter/src/rules/ruff/mod.rs
---
RUF018 Avoid assignment expressions in `assert` statements
 --> RUF018.py:2:9
  |
1 | # RUF018
2 | assert (x := 0) == 0
  |         ^^^^^^
3 | assert x, (y := "error")
4 | print(x, y)
  |

RUF018 Avoid assignment expressions in `assert` statements
 --> RUF018.py:3:12
  |
1 | # RUF018
2 | assert (x := 0) == 0
3 | assert x, (y := "error")
  |            ^^^^^^^^^^^^
4 | print(x, y)
  |
