print#


class DataclassPPrintMixin[source]#

Bases: object

pprint_asdict(exclude_fields: Sequence[str] | None = None, indent: int = 4) None[source]#

Pretty-print the object as a dict, excluding specified fields.

Parameters:
  • exclude_fields – A sequence of field names to exclude from the output. If None, no fields are excluded.

  • indent – The indentation to use when pretty-printing.

pprints_asdict(exclude_fields: Sequence[str] | None = None, indent: int = 4) str[source]#

String corresponding to pretty-print of the object as a dict, excluding specified fields.

Parameters:
  • exclude_fields – A sequence of field names to exclude from the output. If None, no fields are excluded.

  • indent – The indentation to use when pretty-printing.