Skip to content

PEP 695: __type_params__ attribute is writable#3457

Merged
JelleZijlstra merged 1 commit intopython:mainfrom
JelleZijlstra:writetypeparams
Oct 3, 2023
Merged

PEP 695: __type_params__ attribute is writable#3457
JelleZijlstra merged 1 commit intopython:mainfrom
JelleZijlstra:writetypeparams

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
@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