Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmpcollins committed Nov 14, 2024
1 parent 143df65 commit 0df9a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/magentic/chat_model/function_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0df9a6d

Please sign in to comment.