Skip to content

to_dict

Signature/Parameters

def to_dict(self)

Return the legacy dictionary representation used by older callers.

Source code in causalinf/assumptions.py
def to_dict(self):
    """Return the legacy dictionary representation used by older callers."""
    data = asdict(self)
    data.pop("key")
    return data