Snippet

  # dataclass — snippet #63
# Adapt imports and variable names to your project

def example_63():
    """Demonstrates dataclass pattern."""
    pass  # replace with implementation
  

Use When

You need a quick starting point for dataclass without writing boilerplate from scratch.

See Also