File size: 272 Bytes
6172a47
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
"""Shared utility helpers for provider request builders."""

from typing import Any


def set_if_not_none(body: dict[str, Any], key: str, value: Any) -> None:
    """Set body[key] = value only when value is not None."""
    if value is not None:
        body[key] = value