diff --git a/githubkit/utils.py b/githubkit/utils.py index 9e30edb9..cc6946cb 100644 --- a/githubkit/utils.py +++ b/githubkit/utils.py @@ -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: