Skip to content

Commit

Permalink
fix: Unnoticed None values in errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Mar 5, 2024
1 parent 9cea79e commit 962c494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:

_source = d.pop("source", UNSET)
source: Union[Unset, ErrorsErrorsItemSource]
if isinstance(_source, Unset):
if isinstance(_source, (Unset, type(None))):
source = UNSET
else:
source = ErrorsErrorsItemSource.from_dict(_source)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:

_resource = d.pop("resource", UNSET)
resource: Union[Unset, ErrorsErrorsItemSourceResource]
if isinstance(_resource, Unset):
if isinstance(_resource, (Unset, type(None))):
resource = UNSET
else:
resource = ErrorsErrorsItemSourceResource.from_dict(_resource)
Expand Down

0 comments on commit 962c494

Please sign in to comment.