---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
TC004 [*] Move import `collections.abc.Callable` out of type-checking block. Import is used for more than type hinting.
 --> TC004_12.py:6:33
  |
5 | if TYPE_CHECKING:
6 |     from collections.abc import Callable
  |                                 ^^^^^^^^
7 |
8 | AnyCallable: TypeAlias = Callable[..., Any]
  |                          -------- Used at runtime here
  |
help: Move out of type-checking block
  |
3 | from typing import Any, TYPE_CHECKING, TypeAlias
4 + from collections.abc import Callable
5 |
6 | if TYPE_CHECKING:
  -     from collections.abc import Callable
7 +     pass
8 |
  |
note: This is an unsafe fix and may change runtime behavior
