Closed
Description
The text of typing PEPs has often served as the canonical reference for how aspects of the type system work. Now that we have the typing spec in place, we should link to it as the canonical documentation, just as we do for packing PEPs that link to packaging.python.org.
(Cross-referencing python/typing#1531, which should make this easier by adding more link targets within the spec.)
TODO:
From https://peps.python.org/topic/typing/#accepted-peps-accepted-may-not-be-implemented-yet:
- 586 Literal Types: 3.8 PEP 586: Mark as Final #3666
- 589 TypedDict: Type Hints for Dictionaries with a Fixed Set of Keys: 3.8 PEP 589: Mark as Final #3667
- 591 Adding a final qualifier to typing: 3.8 PEP 591: Mark as Final #3668
- 593 Flexible function and variable annotations: 3.9 PEP 593: Mark as Final #3669
- 604 Allow writing union types as X | Y: 3.10 PEP 604: Mark as Final #3677
- 613 Explicit Type Aliases: 3.10 PEP 613: Mark as Final #3670
- 646 Variadic Generics: 3.11 PEP 646: Mark Final #3832
- 647 User-Defined Type Guards: 3.10 PEP 647: Mark as Final #3577
- 655 Marking individual TypedDict items as required or potentially-missing: 3.11 PEP 655: Mark as Final #3672
- 675 Arbitrary Literal String Type: 3.11 PEP 675: Mark as Final #3673
- 681 Data Class Transforms: 3.11 PEP 681: Mark as Final #3674
- 688 Making the buffer protocol accessible in Python: 3.12 PEP 688: Mark as Final #3678
- 692 Using TypedDict for more precise **kwargs typing: 3.12 PEP 692: Mark as Final #3679
- 695 Type Parameter Syntax: 3.12 PEP 695: Mark as Final #3675
- 698 Override Decorator for Static Typing: 3.12 PEP 698: Mark as Final #3676
Later:
- 563 Postponed Evaluation of Annotations: 3.7 - mark as Superseded by PEP 649 once that lands (hopefully in 3.14)
Metadata
Metadata
Assignees
Labels
No labels