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 695: __type_params__ attribute is writable #3457

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Oct 1, 2023

Fixes python/cpython#104600.

We realized that the attribute should be writable on functions and
classes for the benefit of wrappers such as @functools.wraps.

cc @erictraut


📚 Documentation preview 📚: https://pep-previews--3457.org.readthedocs.build/

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fixes python/cpython#104600.

We realized that the attribute should be writable on functions and
classes for the benefit of wrappers such as @functools.wraps.
@JelleZijlstra JelleZijlstra merged commit e173bd0 into python:main Oct 3, 2023
@JelleZijlstra JelleZijlstra deleted the writetypeparams branch October 3, 2023 04:42
@JelleZijlstra JelleZijlstra restored the writetypeparams branch September 10, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

function.__type_params__ and type.__type_params__ should be writable
2 participants