Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pep-0636.rst
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ If you are using classes to structure your data
you can use the class name followed by an argument list resembling a
constructor, but with the ability to capture attributes into variables::

from dataclasses import dataclass

@dataclass
class Point:
x: int
y: int
Expand Down