Skip to content

PEP 681: Remove discussion of alternate form#2386

Merged
JelleZijlstra merged 1 commit intopython:mainfrom
debonte:removeAlternateForm
Mar 7, 2022
Merged

PEP 681: Remove discussion of alternate form#2386
JelleZijlstra merged 1 commit intopython:mainfrom
debonte:removeAlternateForm

Conversation

@debonte
Copy link
Copy Markdown
Contributor

@debonte debonte commented Mar 7, 2022

Removed the "Alternate form" section and the mention of the alternate form in the "Reference Implementation" section.

Now that the dataclass_transform decorator is available in typing_extensions, the fact that Pyright supports the dundered alternate form (__dataclass_transform__) is not particularly interesting and has caused some reader confusion.

This needed to be removed before requesting PEP approval anyway.

cc: @davidfstr

Copy link
Copy Markdown
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, this was useful as an experimental measure but the discussion in the PEP is now confusing.

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