From a7003b73cbd378eaf4a41cda62d499d005ee196c Mon Sep 17 00:00:00 2001 From: Anubhav Dhawan Date: Thu, 3 Apr 2025 10:57:32 +0530 Subject: [PATCH] fix: correct invalid reference when using array types --- packages/toolbox-core/src/toolbox_core/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/toolbox-core/src/toolbox_core/protocol.py b/packages/toolbox-core/src/toolbox_core/protocol.py index 5f1cc86d..e2071ba2 100644 --- a/packages/toolbox-core/src/toolbox_core/protocol.py +++ b/packages/toolbox-core/src/toolbox_core/protocol.py @@ -41,7 +41,7 @@ def __get_type(self) -> Type: elif self.type == "array": if self.items is None: raise Exception("Unexpected value: type is 'list' but items is None") - return list[self._items.to_type()] # type: ignore + return list[self.items.__get_type()] # type: ignore raise ValueError(f"Unsupported schema type: {self.type}")