---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
<filename>:6:18: TCH002 [*] Move third-party import `pandas` into a type-checking block
  |
4 | from typing import TYPE_CHECKING
5 | 
6 | import pandas as pd
  |                  ^^ TCH002
7 | 
8 | if TYPE_CHECKING:
  |
  = help: Move into type-checking block

ℹ Unsafe fix
3  3  | 
4  4  | from typing import TYPE_CHECKING
5  5  | 
6     |-import pandas as pd
7  6  | 
8  7  | if TYPE_CHECKING:
9  8  |     # This is a comment.
   9  |+    import pandas as pd
10 10 |     import os
11 11 | 
12 12 | def f(x: pd.DataFrame):


