async def async_maybe_transform(
    data: object,
    expected_type: object,
) -> Any | None:
    """Wrapper over `async_transform()` that allows `None` to be passed.

    See `async_transform()` for more details.
    """
    if data is None:
        return None
    return await async_transform(data, expected_type)
Wrapper over `async_transform()` that allows `None` to be passed.

    See `async_transform()` for more details.
    
src/anthropic/_utils/_transform.py