Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 681: Describe CPython changes and include docs link #2390

Merged
merged 3 commits into from
Mar 9, 2022
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
8 changes: 8 additions & 0 deletions pep-0681.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
==========

Expand Down Expand Up @@ -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
Expand Down