From 0df9a6dcd5600355307de5c4352c0ba72332107f Mon Sep 17 00:00:00 2001 From: Jack Collins <6640905+jackmpcollins@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:35:16 -0800 Subject: [PATCH] Fix mypy error --- src/magentic/chat_model/function_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/magentic/chat_model/function_schema.py b/src/magentic/chat_model/function_schema.py index 287ce894..df74efc3 100644 --- a/src/magentic/chat_model/function_schema.py +++ b/src/magentic/chat_model/function_schema.py @@ -184,7 +184,7 @@ class IterableFunctionSchema(FunctionSchema[IterableT], Generic[IterableT]): def __init__(self, output_type: type[IterableT]): self._output_type = output_type - self._item_type_adapter = TypeAdapter( + self._item_type_adapter: TypeAdapter[Any] = TypeAdapter( args[0] if (args := get_args(output_type)) else Any ) self._model = create_model(