---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
---
B006_4.py:7:26: B006 [*] Do not use mutable data structures for argument defaults
  |
6 | class FormFeedIndent:
7 |    def __init__(self, a=[]):
  |                         ^^ B006
8 |         print(a)
  |
  = help: Replace with `None`; initialize within function

ℹ Unsafe fix
4  4  | 
5  5  | 
6  6  | class FormFeedIndent:
7     |-   def __init__(self, a=[]):
   7  |+   def __init__(self, a=None):
   8  |+        if a is None:
   9  |+         a = []
8  10 |         print(a)
9  11 |
