Skip to content

PEP 695: typing.TypeVar should be subclassable #104662

Closed as not planned
Closed as not planned
@JelleZijlstra

Description

@JelleZijlstra

Previously typing.TypeVar could be subclassed, and typing_extensions actually does this. However, the new C implementation of TypeVar doesn't allow subclassing. For compatibility, let's restore the ability to subclass it.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions