Commits
Click on a commit to change the comparison rangefix: move UnionMode import outside TYPE_CHECKING for Pydantic runtime access
The UnionMode type is used in GenerateConfig.union_mode field annotation.
Pydantic needs to access this type at runtime for model validation, but it
was only imported inside TYPE_CHECKING block, causing:
PydanticUserError: GenerateConfig is not fully defined; you should define
UnionMode, then call GenerateConfig.model_rebuild().
This follows the same pattern as other runtime-required imports in this file
(Path, DataModel, DataModelFieldBase, etc.) which have noqa: TC001 comments.