-
-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
Please consider PEP 673 for inclusion in Python 3.11. This is primarily of interest to users of static type checkers. It provides a simple and intuitive way to annotate methods that accept or return an instance of their class.
The PEP has been discussed at length in typing sig and on the draft doc. We have also notified python-dev.
There are reference implementations of the type checking part in Pyright and Mypy. There is also an implementation of the Self
special form in typing_extensions.py
.
gvanrossum, AlexWaygood, henryiii, CAM-Gerlach, layday and 2 more
Metadata
Metadata
Assignees
Labels
No labels