-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
project: feature trackerTracks whether a typing feature can be used in typeshed stubsTracks whether a typing feature can be used in typeshed stubs
Description
This issue is supposed to track when we can start to use the improved type alias syntax introduced in Python 3.12 (PEP 695 in typeshed. Support is needed in released versions of:
- mypy
- pytype (optional)
- pyright
- PyCharm (optional)
As this is a syntax change, it's unlikely that we can add support before mypy drops support for running under Python 3.11 and below.
Example from the PEP:
type ListOrSet[T] = list[T] | set[T]
Metadata
Metadata
Assignees
Labels
project: feature trackerTracks whether a typing feature can be used in typeshed stubsTracks whether a typing feature can be used in typeshed stubs