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鈥檒l 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/

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
7 checks passed
@JelleZijlstra JelleZijlstra deleted the writetypeparams branch October 3, 2023 04:42
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