def stringify_datetime_types(data: dict):
    """Stringify date, and datetime, types."""
    for key in ("date", "timestamp"):
        if key in data:
            data[key] = data[key].isoformat()
    return data