Following system colour scheme Selected dark colour scheme Selected light colour scheme

Python Enhancement Proposals

Typing PEPs

Einleitung

Dies ist das Verzeichnis aller Python Enhancement Proposals (PEPs), die unter dem Thema „Typing“ (Typisierung) aufgeführt sind. Dies ist ein Unterverzeichnis von PEP 0, dem PEP-Verzeichnis.

Viele neuere PEPs schlagen Änderungen am statischen Typsystem von Python vor oder beziehen sich anderweitig auf Typannotationen. Sie sind hier zur Referenz aufgeführt.

Index nach Kategorie

Prozess und Meta-PEPs

PEP Titel Autoren
PA 729 Typing governance process Jelle Zijlstra, Shantanu Jain

Andere informative PEPs

PEP Titel Autoren
IF 482 Literature Overview for Type Hints Łukasz Langa
IF 483 The Theory of Type Hints Guido van Rossum, Ivan Levkivskyi

Akzeptierte PEPs (akzeptiert; möglicherweise noch nicht implementiert)

PEP Titel Autoren
SA 728 TypedDict with Typed Extra Items Zixuan James Li 3.15

Offene PEPs (in Prüfung)

PEP Titel Autoren
S 718 Subscriptable functions James Hilton-Balfe 3.15
S 746 Type checking Annotated metadata Adrian Garcia Badaracco 3.15
S 747 Annotating Type Forms David Foster, Eric Traut 3.15
S 764 Inline typed dictionaries Victorien Plot 3.15
S 767 Annotating Read-Only Attributes Eneg 3.15
S 781 Make TYPE_CHECKING a built-in constant Inada Naoki 3.15
S 800 Disjoint bases in the type system Jelle Zijlstra 3.15

Abgeschlossene PEPs (fertig, mit stabiler Schnittstelle)

PEP Titel Autoren
SF 484 Type Hints Guido van Rossum, Jukka Lehtosalo, Łukasz Langa 3.5
SF 526 Syntax for Variable Annotations Ryan Gonzalez, Philip House, Ivan Levkivskyi, Lisa Roach, Guido van Rossum 3.6
SF 544 Protocols: Structural subtyping (static duck typing) Ivan Levkivskyi, Jukka Lehtosalo, Łukasz Langa 3.8
SF 560 Core support for typing module and generic types Ivan Levkivskyi 3.7
SF 561 Verteilung und Verpackung von Typinformationen Emma Harper Smith 3.7
SF 585 Type Hinting Generics In Standard Collections Łukasz Langa 3.9
SF 586 Literal Types Michael Lee, Ivan Levkivskyi, Jukka Lehtosalo 3.8
SF 589 TypedDict: Type Hints for Dictionaries with a Fixed Set of Keys Jukka Lehtosalo 3.8
SF 591 Adding a final qualifier to typing Michael J. Sullivan, Ivan Levkivskyi 3.8
SF 593 Flexible function and variable annotations Till Varoquaux, Konstantin Kashin 3.9
SF 604 Allow writing union types as X | Y Philippe PRADOS, Maggie Moss 3.10
SF 612 Parameter Specification Variables Mark Mendoza 3.10
SF 613 Explicit Type Aliases Shannon Zhu 3.10
SF 646 Variadic Generics Mark Mendoza, Matthew Rahtz, Pradeep Kumar Srinivasan, Vincent Siles 3.11
SF 647 User-Defined Type Guards Eric Traut 3.10
SF 649 Deferred Evaluation Of Annotations Using Descriptors Larry Hastings 3.14
SF 655 Marking individual TypedDict items as required or potentially-missing David Foster 3.11
SF 673 Self Type Pradeep Kumar Srinivasan, James Hilton-Balfe 3.11
SF 675 Arbitrary Literal String Type Pradeep Kumar Srinivasan, Graham Bleaney 3.11
SF 681 Data Class Transforms Erik De Bonte, Eric Traut 3.11
SF 688 Making the buffer protocol accessible in Python Jelle Zijlstra 3.12
SF 692 Using TypedDict for more precise **kwargs typing Franek Magiera 3.12
SF 695 Type Parameter Syntax Eric Traut 3.12
SF 696 Type Defaults for Type Parameters James Hilton-Balfe 3.13
SF 698 Override Decorator for Static Typing Steven Troxler, Joshua Xu, Shannon Zhu 3.12
SF 702 Marking deprecations using the type system Jelle Zijlstra 3.13
SF 705 TypedDict: Read-only items Alice Purcell 3.13
SF 742 Narrowing types with TypeIs Jelle Zijlstra 3.13
SF 749 Implementing PEP 649 Jelle Zijlstra 3.14

Abgelehnte, abgelöste und zurückgezogene PEPs

PEP Titel Autoren
SS 563 Postponed Evaluation of Annotations Łukasz Langa 3.7
SR 677 Callable Type Syntax Steven Troxler, Pradeep Kumar Srinivasan 3.11
SW 724 Stricter Type Guards Rich Chiodo, Eric Traut, Erik De Bonte 3.13
SW 727 Documentation in Annotated Metadata Sebastián Ramírez 3.13

Schlüssel für PEP-Typen

  • IInformational: Nicht bindendes PEP, das Hintergrundinformationen, Richtlinien oder andere Informationen enthält, die für das Python-Ökosystem relevant sind.
  • PProcess: Bindendes PEP, das eine Änderung eines Prozesses, Workflow oder einer Governance der Python-Community beschreibt oder vorschlägt.
  • SStandards Track: Bindendes PEP mit einer neuen Funktion für Python, einer Implementierungsänderung für CPython oder einem Interoperabilitätsstandard für das Ökosystem.

Mehr Informationen in PEP 1.

Schlüssel für PEP-Status

  • AAccepted: Bindender Vorschlag, der für die Implementierung akzeptiert wurde.
  • AActive: Aktuell gültige informative Richtlinie oder ein genutzter Prozess.
  • DDeferred: Inaktiver Entwurf, der zu einem späteren Zeitpunkt wieder aufgegriffen werden kann.
  • <Kein Buchstabe>Draft: Vorschlag unter aktiver Diskussion und Überarbeitung.
  • FFinal: Akzeptiert und Implementierung abgeschlossen, oder nicht mehr aktiv.
  • PProvisional: Vorläufig akzeptiert, aber zusätzliches Feedback ist erforderlich.
  • RRejected: Formell abgelehnt und wird nicht akzeptiert.
  • SSuperseded: Ersetzt durch ein nachfolgendes PEP.
  • WWithdrawn: Vom Sponsor oder den Autoren aus der Betrachtung zurückgezogen.

Mehr Informationen in PEP 1.