diff --git a/pep-0636.rst b/pep-0636.rst index 880074232f1..60fd0bd3e69 100644 --- a/pep-0636.rst +++ b/pep-0636.rst @@ -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