---
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs
---
TC003 [*] Move standard library import `uuid.UUID` into a type-checking block
 --> runtime_evaluated_base_classes_3.py:5:18
  |
3 | import datetime
4 | import pathlib
5 | from uuid import UUID  # TC003
  |                  ^^^^
6 |
7 | import pydantic
  |
help: Move into type-checking block
   |
4  | import pathlib
   - from uuid import UUID  # TC003
5  |
6  | import pydantic
7  | from pydantic import BaseModel
8  + from typing import TYPE_CHECKING
9  +
10 + if TYPE_CHECKING:
11 +     from uuid import UUID
12 |
   |
note: This is an unsafe fix and may change runtime behavior
