Files
openide/python/testData/quickdoc/TypingExtensionsSelf.py
andrey.matveev cad1138e59 PY-53104 Support PEP 673 typing.Self type
GitOrigin-RevId: 8efc65725580510dc3e9a93e1242e1a69032c8f1
2022-10-19 09:45:15 +00:00

10 lines
159 B
Python

from typing_extensions import Self
class A:
def foo(self) -> Self:
...
class B(A):
def bar(self) -> Self:
...
b = B()
b.f<the_ref>oo()