We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73b4c21 commit 816a92bCopy full SHA for 816a92b
stdlib/@python2/_typeshed/__init__.pyi
@@ -26,6 +26,10 @@ _T = TypeVar("_T")
26
_T_co = TypeVar("_T_co", covariant=True)
27
_T_contra = TypeVar("_T_contra", contravariant=True)
28
29
+# Use for "self" annotations:
30
+# def __enter__(self: Self) -> Self: ...
31
+Self = TypeVar("Self") # noqa Y001
32
+
33
class IdentityFunction(Protocol):
34
def __call__(self, __x: _T) -> _T: ...
35
stdlib/_typeshed/__init__.pyi
@@ -18,6 +18,10 @@ _T = TypeVar("_T")
18
19
20
21
22
23
24
25
# stable
0 commit comments