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