Commits
Click on a commit to change the comparison rangefix: Handle UnionType in Pydantic model cleaning
The `X | Y` union syntax (types.UnionType) is not subscriptable, so we
need to use typing.Union to reconstruct union types when cleaning
Pydantic models.
Also adds test cases for:
- Forward references (Parent with list[Child])
- Self-referential models (TreeNode with list[TreeNode] | None) refactor: Extract Colab compatibility utils to separate module Merge branch 'main' into fix/colab-pydantic-pickle chore: remove colab test script (now linked in PR description) test: verify cleaned model has clean namespace Fix infinite recursion in clean_pydantic_model for self-referential models
Skip self-references when collecting referenced models to prevent infinite
recursion. Models like SingleChildTree with 'child: SingleChildTree | None'
now clean correctly without RecursionError. Merge branch 'main' into fix/colab-pydantic-pickle Merge branch 'main' into fix/colab-pydantic-pickle