We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UNSET
1 parent b3faaad commit 5ba5574Copy full SHA for 5ba5574
githubkit/utils.py
@@ -36,6 +36,8 @@ def exclude_unset(data: Any) -> Any:
36
return data.__class__(
37
(k, exclude_unset(v)) for k, v in data.items() if v is not UNSET
38
)
39
+ elif isinstance(data, list):
40
+ return data.__class__(exclude_unset(i) for i in data)
41
elif data is UNSET:
42
return None
43
return data
0 commit comments