Skip to content

Commit 59822cc

Browse files
Fix SetOf.update_children writing to wrong attribute
SetOf.update_children was writing to self.types (non-existent) instead of self.type, causing inner type resolution to silently fail for Set fields. This was a copy-paste error from TupleOf which uses the plural self.types attribute. Added a length assertion to match the ListOf pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b3d632b commit 59822cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mountaineer/client_builder/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ def children(self):
129129
return [self.type]
130130

131131
def update_children(self, children):
132-
self.types = tuple(children)
132+
assert len(children) == 1
133+
self.type = children[0]
133134

134135

135136
class LiteralOf(TypeDefinition):

0 commit comments

Comments
 (0)