---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
TC003 [*] Move standard library import `pathlib.Path` into a type-checking block
 --> init_var.py:6:21
  |
5 | from dataclasses import FrozenInstanceError, InitVar, dataclass
6 | from pathlib import Path
  |                     ^^^^
  |
help: Move into type-checking block
   |
5  | from dataclasses import FrozenInstanceError, InitVar, dataclass
   - from pathlib import Path
6  + from typing import TYPE_CHECKING
7  +
8  + if TYPE_CHECKING:
9  +     from pathlib import Path
10 |
   |
note: This is an unsafe fix and may change runtime behavior
