---
source: crates/ruff_linter/src/rules/ruff/mod.rs
---
RUF008 Do not use mutable default values for dataclass attributes
  --> RUF008_attrs.py:13:34
   |
11 | @define
12 | class A:
13 |     mutable_default: list[int] = []
   |                                  ^^
14 |     immutable_annotation: typing.Sequence[int] = []
15 |     without_annotation = []
   |

RUF008 Do not use mutable default values for dataclass attributes
  --> RUF008_attrs.py:23:34
   |
21 | @frozen
22 | class B:
23 |     mutable_default: list[int] = []
   |                                  ^^
24 |     immutable_annotation: Sequence[int] = []
25 |     without_annotation = []
   |

RUF008 Do not use mutable default values for dataclass attributes
  --> RUF008_attrs.py:33:34
   |
31 | @attr.s
32 | class C:
33 |     mutable_default: list[int] = []
   |                                  ^^
34 |     immutable_annotation: Sequence[int] = []
35 |     without_annotation = []
   |

RUF008 Do not use mutable default values for dataclass attributes
  --> RUF008_attrs.py:42:34
   |
40 | @s
41 | class D:
42 |     mutable_default: list[int] = []
   |                                  ^^
43 |     immutable_annotation: Sequence[int] = []
44 |     without_annotation = []
   |
