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: Decorator placement, future params, unstated semantics #2498

Merged
merged 3 commits into from
Apr 1, 2022

Conversation

debonte
Copy link
Contributor

@debonte debonte commented Apr 1, 2022

  1. Specify that when dataclass_transform is applied to functions, it can be on any one of the overloads or the implementation. The behavior when dataclass_transform is applied in more than one of those overloads/implementation is undefined.
  2. Mention that in the future we may add additional dataclass_transform parameters based on consensus in typing-sig, without a PEP.
  3. Clarify in Dataclass Semantics section that the list of semantics in the PEP is not complete, but just the ones that we felt needed to be called out. In particular the PEP doesn't list behaviors related to descriptor-typed fields which will hopefully be documented soon on the dataclass side -- https://bugs.python.org/issue47174

pep-0681.rst Outdated Show resolved Hide resolved
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants