---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
TCH004_1.py:4:26: TCH004 [*] Move import `datetime.datetime` out of type-checking block. Import is used for more than type hinting.
  |
3 | if TYPE_CHECKING:
4 |     from datetime import datetime
  |                          ^^^^^^^^ TCH004
5 | x = datetime
  |
  = help: Move out of type-checking block

ℹ Unsafe fix
1 1 | from typing import TYPE_CHECKING
  2 |+from datetime import datetime
2 3 | 
3 4 | if TYPE_CHECKING:
4   |-    from datetime import datetime
  5 |+    pass
5 6 | x = datetime


