Skip to content

Commit

Permalink
fix: adding type ignore for pyright (#1215)
Browse files Browse the repository at this point in the history
Adding pyright type ignore for CI
  • Loading branch information
ivanleomk authored Nov 24, 2024
1 parent 068d183 commit d49abe7
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 @@ -106,10 +106,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
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 d49abe7

Please sign in to comment.