Statements (18)
| Predicate | Object |
|---|---|
| gptkbp:instanceOf |
gptkb:Python_Enhancement_Proposal
|
| gptkbp:author |
Pradeep Kumar Srinivasan
|
| gptkbp:created |
2021-07-13
|
| gptkbp:discusses |
https://discuss.python.org/t/pep-673-self-type/10016
|
| gptkbp:feature |
typing.Self
|
| gptkbp:implementedIn |
CPython 3.11
|
| gptkbp:JEP_number |
673
|
| gptkbp:motive |
To make it easier to annotate methods that return an instance of their class, especially for fluent interfaces and classmethod/staticmethod patterns.
|
| gptkbp:PEP_index |
https://peps.python.org/pep-0673/
|
| gptkbp:plotSummary |
Introduces a simple and intuitive way to annotate methods that return an instance of their class using typing.Self.
|
| gptkbp:python-version |
3.11
|
| gptkbp:status |
Final
|
| gptkbp:title |
gptkb:PEP_673:_Self_Type
|
| gptkbp:topic |
typing
|
| gptkbp:type |
Standards Track
|
| gptkbp:bfsParent |
gptkb:Python_3.11
|
| gptkbp:bfsLayer |
7
|
| https://www.w3.org/2000/01/rdf-schema#label |
PEP 673: Self Type
|