---
source: crates/ruff_linter/src/rules/ruff/mod.rs
snapshot_kind: text
---
RUF008.py:10:34: RUF008 Do not use mutable default values for dataclass attributes
   |
 8 | @dataclass
 9 | class A:
10 |     mutable_default: list[int] = []
   |                                  ^^ RUF008
11 |     immutable_annotation: typing.Sequence[int] = []
12 |     without_annotation = []
   |

RUF008.py:20:34: RUF008 Do not use mutable default values for dataclass attributes
   |
18 | @dataclass
19 | class B:
20 |     mutable_default: list[int] = []
   |                                  ^^ RUF008
21 |     immutable_annotation: Sequence[int] = []
22 |     without_annotation = []
   |
