From a4a5b5dbc83819cce93340239af505c7d62214ed Mon Sep 17 00:00:00 2001 From: Ivan Leo Date: Fri, 8 Nov 2024 14:10:04 +0800 Subject: [PATCH] fix: Reverted partial.py type ignore --- instructor/dsl/partial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instructor/dsl/partial.py b/instructor/dsl/partial.py index a6a75b1ba..41b5dc35e 100644 --- a/instructor/dsl/partial.py +++ b/instructor/dsl/partial.py @@ -68,10 +68,10 @@ def _make_field_optional( tmp_field.annotation = Optional[Partial[annotation, MakeFieldsOptional]] # type: ignore[assignment, valid-type] tmp_field.default = {} else: - tmp_field.annotation = Optional[field.annotation] + tmp_field.annotation = Optional[field.annotation] # type: ignore[assignment] tmp_field.default = None - return tmp_field.annotation, tmp_field + return tmp_field.annotation, tmp_field # type: ignore class PartialBase(Generic[T_Model]):