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.
drop_none(x)
1 parent 3200268 commit 05ed953Copy full SHA for 05ed953
src/posit/connect/_utils.py
@@ -0,0 +1,7 @@
1
+from __future__ import annotations
2
+
3
+from typing import Any
4
5
6
+def drop_none(x: dict[str, Any]) -> dict[str, Any]:
7
+ return {k: v for k, v in x.items() if v is not None}
0 commit comments