You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Pydantic 2.12+ compatibility for custom FieldInfo with Annotated types (#727)
Fix Pydantic 2.12+ compatibility for custom FieldInfo with Annotated types
Pydantic 2.12+ converts custom FieldInfo subclasses to plain PydanticFieldInfo
for fields using Annotated types with metadata (like Coordinates). This caused
custom attributes like index, sortable, etc. to be lost.
Fix: Capture original FieldInfo objects before Pydantic processes them and
restore them when Pydantic has converted them to plain PydanticFieldInfo.
* Exclude mypy on PyPy to avoid librt build failure
mypy 1.19+ depends on librt which only has CPython wheels.
When Poetry tries to install on PyPy, it falls back to building
from source, which fails because librt uses CPython-specific C APIs.
0 commit comments