---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
singledispatch.py:10:20: TCH002 [*] Move third-party import `pandas.DataFrame` into a type-checking block
   |
 8 | from numpy.typing import ArrayLike
 9 | from scipy.sparse import spmatrix
10 | from pandas import DataFrame
   |                    ^^^^^^^^^ TCH002
11 | 
12 | if TYPE_CHECKING:
   |
   = help: Move into type-checking block

ℹ Unsafe fix
7  7  | from numpy import asarray
8  8  | from numpy.typing import ArrayLike
9  9  | from scipy.sparse import spmatrix
10    |-from pandas import DataFrame
11 10 | 
12 11 | if TYPE_CHECKING:
   12 |+    from pandas import DataFrame
13 13 |     from numpy import ndarray
14 14 | 
15 15 | 


