Skip to content

Commit 9a978e5

Browse files
committed
fix: Fix nested types for array types in ParameterSchema.
1 parent 3abe9e4 commit 9a978e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolbox-core/src/toolbox_core/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __get_type(self) -> Type:
4141
elif self.type == "array":
4242
if self.items is None:
4343
raise Exception("Unexpected value: type is 'list' but items is None")
44-
return list[self._items.to_type()] # type: ignore
44+
return list[self.items.__get_type()] # type: ignore
4545

4646
raise ValueError(f"Unsupported schema type: {self.type}")
4747

0 commit comments

Comments
 (0)