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