Skip to content

Fix SetOf.update_children writing to wrong attribute#232

Draft
pradhankukiran wants to merge 1 commit intopiercefreeman:mainfrom
pradhankukiran:fix/setof-update-children-attribute
Draft

Fix SetOf.update_children writing to wrong attribute#232
pradhankukiran wants to merge 1 commit intopiercefreeman:mainfrom
pradhankukiran:fix/setof-update-children-attribute

Conversation

@pradhankukiran
Copy link

@pradhankukiran pradhankukiran commented Feb 12, 2026

  • SetOf.update_children was writing to self.types (non-existent attribute) instead of self.type, silently preventing inner type resolution for Set fields containing Pydantic models
  • This was a copy-paste error from TupleOf, which correctly uses the plural self.types
  • Added a length assertion to match the ListOf pattern

@pradhankukiran pradhankukiran force-pushed the fix/setof-update-children-attribute branch from 59822cc to c58bf2e Compare February 12, 2026 12:09
@pradhankukiran pradhankukiran marked this pull request as draft February 13, 2026 15:20
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.

1 participant