---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
named_expr_without_context.py:2:2: PLW0131 Named expression used without context
  |
1 | # Errors
2 | (a := 42)
  |  ^^^^^^^ PLW0131
3 | if True:
4 |     (b := 1)
  |

named_expr_without_context.py:4:6: PLW0131 Named expression used without context
  |
2 | (a := 42)
3 | if True:
4 |     (b := 1)
  |      ^^^^^^ PLW0131
  |

named_expr_without_context.py:8:6: PLW0131 Named expression used without context
  |
7 | class Foo:
8 |     (c := 1)
  |      ^^^^^^ PLW0131
  |


