---
source: crates/ruff_linter/src/rules/pyupgrade/mod.rs
---
UP006 [*] Use `collections.defaultdict` instead of `typing.DefaultDict` for type annotation
  --> UP006_1.py:9:10
   |
 9 | def f(x: typing.DefaultDict[str, str]) -> None:
   |          ^^^^^^^^^^^^^^^^^^
10 |     ...
   |
help: Replace with `collections.defaultdict`
   |
8  |
   - def f(x: typing.DefaultDict[str, str]) -> None:
9  + def f(x: defaultdict[str, str]) -> None:
10 |     ...
   |
