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

gh-91860: Add typing.dataclass_transform (PEP 681) #91861

Merged
merged 3 commits into from Apr 26, 2022

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Apr 23, 2022

Copied from typing-extensions (python/typing#1054, python/typing#1120).

Documentation is intentionally omitted, so we can focus on getting the
runtime part in before the feature freeze.

#91860

Copied from typing-extensions (python/typing#1054, python/typing#1120).

Documentation is intentionally omitted, so we can focus on getting the
runtime part in before the feature freeze.
Copy link
Contributor

@Fidget-Spinner Fidget-Spinner left a comment

Wow. I just read the PEP and this implementation for the first time. So I'll have some newbie concerns.

Lib/typing.py Outdated Show resolved Hide resolved
Lib/test/test_typing.py Show resolved Hide resolved
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Implementation and tests look good, just a few comments on the docstring

Lib/typing.py Outdated Show resolved Hide resolved
Lib/typing.py Outdated Show resolved Hide resolved
Lib/typing.py Show resolved Hide resolved
@JelleZijlstra
Copy link
Member Author

@JelleZijlstra JelleZijlstra commented Apr 24, 2022

Thanks @Fidget-Spinner and @AlexWaygood for the feedback, I just pushed some changes.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

LGTM! :)

Lib/typing.py Outdated Show resolved Hide resolved
@AlexWaygood AlexWaygood added type-feature expert-typing stdlib labels Apr 25, 2022
@JelleZijlstra JelleZijlstra merged commit 5397b5a into python:main Apr 26, 2022
13 checks passed
@JelleZijlstra JelleZijlstra deleted the pep681 branch Apr 26, 2022
JelleZijlstra added a commit to JelleZijlstra/typeshed that referenced this issue Apr 26, 2022
AlexWaygood pushed a commit to python/typeshed that referenced this issue Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
expert-typing stdlib type-feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants