From 0dc3c49ecefd41bf7352f882c88e990ead276128 Mon Sep 17 00:00:00 2001 From: Erik De Bonte Date: Tue, 8 Mar 2022 18:19:47 -0800 Subject: [PATCH] PEP 681: Describe CPython changes and include docs link (#2390) Co-authored-by: CAM Gerlach --- pep-0681.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pep-0681.rst b/pep-0681.rst index 4295055ae..e471134e4 100644 --- a/pep-0681.rst +++ b/pep-0681.rst @@ -39,6 +39,13 @@ These behaviors include: individual fields that a static type checker must be aware of, such as whether a default value is provided for the field. +The full behavior of the stdlib dataclass is described in the `Python +documentation <#dataclass-docs_>`_. + +This proposal does not affect CPython directly except for the addition +of a ``dataclass_transform`` decorator in ``typing.py``. + + Motivation ========== @@ -679,6 +686,7 @@ Some aspects of this issue are detailed in a References ========== +.. _#dataclass-docs: https://docs.python.org/3.11/library/dataclasses.html .. _#pyright: https://github.com/Microsoft/pyright .. _#pyright-impl: https://github.com/microsoft/pyright/blob/main/packages/pyright-internal/src/analyzer/dataClasses.ts .. _#attrs-usage: https://github.com/python-attrs/attrs/pull/796