---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
TC004 [*] Move import `typing.List` out of type-checking block. Import is used for more than type hinting.
 --> TC004_11.py:4:24
  |
3 | if TYPE_CHECKING:
4 |     from typing import List
  |                        ^^^^
5 |
6 | __all__ = ("List",)
  |            ------ Used at runtime here
  |
help: Move out of type-checking block
  |
1 | from typing import TYPE_CHECKING
2 + from typing import List
3 |
4 | if TYPE_CHECKING:
  -     from typing import List
5 +     pass
6 |
  |
note: This is an unsafe fix and may change runtime behavior
