Tech Insights· peps.python.org
PEP 673 – Self Type
From peps.python.org
This PEP introduces a simple and intuitive way to annotate methods that return an instance of their class. This behaves the same as the TypeVar-based approach specified in PEP 484 but is more concise and easier to follow.
Shared by
- Python
- Typing



