---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
quote.py:64:28: TCH004 [*] Move import `pandas.DataFrame` out of type-checking block. Import is used for more than type hinting.
   |
63 |     if TYPE_CHECKING:
64 |         from pandas import DataFrame
   |                            ^^^^^^^^^ TCH004
65 | 
66 |     def func(value: DataFrame):
   |
   = help: Move out of type-checking block

ℹ Unsafe fix
   1  |+from pandas import DataFrame
1  2  | def f():
2  3  |     from pandas import DataFrame
3  4  | 
--------------------------------------------------------------------------------
61 62 |     from typing import TYPE_CHECKING
62 63 | 
63 64 |     if TYPE_CHECKING:
64    |-        from pandas import DataFrame
   65 |+        pass
65 66 | 
66 67 |     def func(value: DataFrame):
67 68 |         ...


