Skip to content

Commit 05ed953

Browse files
committed
Add utils file containing drop_none(x)
1 parent 3200268 commit 05ed953

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/posit/connect/_utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)