---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
TC002 [*] Move third-party import `pandas.DataFrame` into a type-checking block
  --> singledispatch.py:12:20
   |
10 | from numpy.typing import ArrayLike
11 | from scipy.sparse import spmatrix
12 | from pandas import DataFrame
   |                    ^^^^^^^^^
13 |
14 | if TYPE_CHECKING:
   |
help: Move into type-checking block
   |
11 | from scipy.sparse import spmatrix
   - from pandas import DataFrame
12 |
13 | if TYPE_CHECKING:
14 +     from pandas import DataFrame
15 |     from numpy import ndarray
   |
note: This is an unsafe fix and may change runtime behavior
