Skip to content

Dataclasses

Coming soon

Eliminate boilerplate with @dataclass, default factories, frozen instances, and slots.

You'll be able to

  • Generate __init__, __repr__, and __eq__ automatically with @dataclass
  • Use field(default_factory=...) for mutable defaults
  • Create immutable value objects with frozen=True

Coming soon

This lesson is being written. The Telegram channel announces new lessons as they open.