Skip to content

Fix reference binding for inherited fields - #40

Merged
dschwartznyc merged 1 commit into
mainfrom
fix/inherited-reference-fields
Sep 22, 2026
Merged

dschwartznyc merged 1 commit into
mainfrom
fix/inherited-reference-fields

Conversation

@plamen-neykov

Copy link
Copy Markdown
Contributor

Use Pydantic model_fields to retrieve inherited field annotations, preventing TypeError while preserving reference target type checks.

Add regression coverage for multilevel inheritance, incompatible targets, and deserialization with validation enabled and disabled.

Fixes #39

Use Pydantic model_fields to retrieve inherited field annotations,
preventing TypeError while preserving reference target type checks.

Add regression coverage for multilevel inheritance, incompatible targets,
and deserialization with validation enabled and disabled.

Fixes #39
@dschwartznyc
dschwartznyc merged commit 1e1f4e4 into main Sep 22, 2026
3 checks passed
@dschwartznyc
dschwartznyc deleted the fix/inherited-reference-fields branch September 22, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_bind_property_to raises TypeError when the reference field is inherited from a base class

2 participants