From be1c166f4b7f97807276eda5f5e98f01e9ce6b41 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 23 Mar 2021 19:26:03 +0100 Subject: [PATCH] PEP 636: add missing @dataclass (#1879) --- pep-0636.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pep-0636.rst b/pep-0636.rst index 1c3fa1f7b..06e844deb 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