---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
TCH004_5.py:4:24: TCH004 [*] Move import `typing.List` out of type-checking block. Import is used for more than type hinting.
  |
3 | if TYPE_CHECKING:
4 |     from typing import List, Sequence, Set
  |                        ^^^^ TCH004
  |
  = help: Move out of type-checking block

ℹ Unsafe fix
1 1 | from typing import TYPE_CHECKING
  2 |+from typing import List, Sequence, Set
2 3 | 
3 4 | if TYPE_CHECKING:
4   |-    from typing import List, Sequence, Set
  5 |+    pass
5 6 | 
6 7 | 
7 8 | def example(a: List[int], /, b: Sequence[int], *, c: Set[int]):

TCH004_5.py:4:30: TCH004 [*] Move import `typing.Sequence` out of type-checking block. Import is used for more than type hinting.
  |
3 | if TYPE_CHECKING:
4 |     from typing import List, Sequence, Set
  |                              ^^^^^^^^ TCH004
  |
  = help: Move out of type-checking block

ℹ Unsafe fix
1 1 | from typing import TYPE_CHECKING
  2 |+from typing import List, Sequence, Set
2 3 | 
3 4 | if TYPE_CHECKING:
4   |-    from typing import List, Sequence, Set
  5 |+    pass
5 6 | 
6 7 | 
7 8 | def example(a: List[int], /, b: Sequence[int], *, c: Set[int]):

TCH004_5.py:4:40: TCH004 [*] Move import `typing.Set` out of type-checking block. Import is used for more than type hinting.
  |
3 | if TYPE_CHECKING:
4 |     from typing import List, Sequence, Set
  |                                        ^^^ TCH004
  |
  = help: Move out of type-checking block

ℹ Unsafe fix
1 1 | from typing import TYPE_CHECKING
  2 |+from typing import List, Sequence, Set
2 3 | 
3 4 | if TYPE_CHECKING:
4   |-    from typing import List, Sequence, Set
  5 |+    pass
5 6 | 
6 7 | 
7 8 | def example(a: List[int], /, b: Sequence[int], *, c: Set[int]):


