Skip to content

Commit d5a3259

Browse files
authored
fix: correct invalid reference when using array types (#128)
1 parent ed82832 commit d5a3259

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)