Skip to content

Commit

Permalink
✨ Feature: Tweak Missing type to implicitly allow None values (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
  • Loading branch information
frankie567 and yanyongyu committed Sep 26, 2023
1 parent fd80590 commit d01733b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion githubkit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def _validate(cls, value: Any):


UNSET = Unset._UNSET
Missing: TypeAlias = Union[Literal[UNSET], T]
# if the property is not required, we allow it to have the value null.
# See https://github.com/yanyongyu/githubkit/issues/47
Missing: TypeAlias = Union[Literal[UNSET], T, None]


def exclude_unset(data: Any) -> Any:
Expand Down

0 comments on commit d01733b

Please sign in to comment.