You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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 intyping_extensions.py
.CC: @Gobot1234 @JelleZijlstra
https://www.python.org/dev/peps/pep-0673/
The text was updated successfully, but these errors were encountered: