Implement proposed "Self" type #2515
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
A new PEP for Python 3.11 proposes to introduce a new special form called
Self
exported from thetyping
module.https://docs.google.com/document/d/1ujuSMXDmSIOJpiZyV7mvBEC8P-y55AgSzXcvhrZciuI/edit
Pyright already implements this in an implicit manner, inferring the type of
self
andcls
parameters when they are unannotated, so it should be easy to prototype this new functionality.The text was updated successfully, but these errors were encountered: