-
Notifications
You must be signed in to change notification settings - Fork 263
Closed as not planned
Labels
topic: documentationDocumentation-related issues and PRsDocumentation-related issues and PRs
Description
PEP 695 (Type Parameter Syntax) says:
The existing mechanism for allocating
TypeVar
,TypeVarTuple
, andParamSpec
is retained for backward compatibility.
If that is the only reason they are kept around in typing
, wouldn't it make sense to mark them as deprecated?
Or are there situations in which they still have advantages over PEP 695's dedicated syntax for type parameters?
The current Python docs just point out that a new syntax for type parameters exists, but don't say anything about deprecation:
Changed in version 3.12: Type variables can now be declared using the type parameter syntax introduced by PEP 695. The
infer_variance
parameter was added.
Related issues
- Document PEP 695 cpython#103921
- One of the PRs linked there introduced the change notification cited above.
Metadata
Metadata
Assignees
Labels
topic: documentationDocumentation-related issues and PRsDocumentation-related issues and PRs