Files
email_alerts/venv/lib/python3.11/site-packages/twilio/base/values.py
T
2025-07-25 11:31:36 +01:00

14 lines
280 B
Python

from typing import Dict
unset = object()
def of(d: Dict[str, object]) -> Dict[str, object]:
"""
Remove unset values from a dict.
:param d: A dict to strip.
:return A dict with unset values removed.
"""
return {k: v for k, v in d.items() if v != unset}