Skip to content

Commit

Permalink
fix: Reverted partial.py type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanleomk committed Nov 8, 2024
1 parent 16abe4f commit a4a5b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instructor/dsl/partial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down

0 comments on commit a4a5b5d

Please sign in to comment.