---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
---
B006_2.py:4:22: B006 [*] Do not use mutable data structures for argument defaults
  |
2 | # Regression test for https://github.com/astral-sh/ruff/issues/7155
3 | 
4 | def foobar(foor, bar={}):    
  |                      ^^ B006
5 |     """
6 |     """                    
  |
  = help: Replace with `None`; initialize within function

ℹ Unsafe fix
1 1 | # Docstring followed by whitespace with no newline
2 2 | # Regression test for https://github.com/astral-sh/ruff/issues/7155
3 3 | 
4   |-def foobar(foor, bar={}):    
  4 |+def foobar(foor, bar=None):    
5 5 |     """
6 6 |     """
