Skip to content

Commit

Permalink
fix: reverted the 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 4d3bd38
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 4d3bd38

Please sign in to comment.