File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ overload = object()
11
11
Any = object ()
12
12
TypeVar = object ()
13
13
_promote = object ()
14
- no_type_check = object ()
15
14
16
15
class _SpecialForm (object ):
17
16
def __getitem__ (self , typeargs : Any ) -> object : ...
@@ -36,6 +35,10 @@ class GenericMeta(type): ...
36
35
# distinguish the None type from the None value.
37
36
NoReturn = Union [None ]
38
37
38
+ _C = TypeVar ("_C" , bound = Callable [..., Any ])
39
+ no_type_check = object ()
40
+ def no_type_check_decorator (decorator : _C ) -> _C : ...
41
+
39
42
# Type aliases and type constructors
40
43
41
44
class TypeAlias :
@@ -69,7 +72,8 @@ _KT_co = TypeVar('_KT_co', covariant=True) # Key type covariant containers.
69
72
_VT_co = TypeVar ('_VT_co' , covariant = True ) # Value type covariant containers.
70
73
_T_contra = TypeVar ('_T_contra' , contravariant = True ) # Ditto contravariant.
71
74
_TC = TypeVar ('_TC' , bound = Type [object ])
72
- _C = TypeVar ("_C" , bound = Callable [..., Any ])
75
+ # _C is now declared earlier for no_type_check_decorator
76
+ # _C = TypeVar("_C", bound=Callable[..., Any])
73
77
74
78
def runtime_checkable (cls : _TC ) -> _TC : ...
75
79
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ overload = object()
12
12
Any = object ()
13
13
TypeVar = object ()
14
14
_promote = object ()
15
- no_type_check = object ()
16
15
17
16
class _SpecialForm :
18
17
def __getitem__ (self , typeargs : Any ) -> Any : ...
@@ -38,6 +37,10 @@ class GenericMeta(type): ...
38
37
# distinguish the None type from the None value.
39
38
NoReturn = Union [None ]
40
39
40
+ _C = TypeVar ("_C" , bound = Callable [..., Any ])
41
+ no_type_check = object ()
42
+ def no_type_check_decorator (decorator : _C ) -> _C : ...
43
+
41
44
# Type aliases and type constructors
42
45
43
46
class TypeAlias :
@@ -75,7 +78,8 @@ _KT_co = TypeVar('_KT_co', covariant=True) # Key type covariant containers.
75
78
_VT_co = TypeVar ('_VT_co' , covariant = True ) # Value type covariant containers.
76
79
_T_contra = TypeVar ('_T_contra' , contravariant = True ) # Ditto contravariant.
77
80
_TC = TypeVar ('_TC' , bound = Type [object ])
78
- _C = TypeVar ("_C" , bound = Callable [..., Any ])
81
+ # _C is now declared earlier for no_type_check_decorator
82
+ # _C = TypeVar("_C", bound=Callable[..., Any])
79
83
80
84
def runtime_checkable (cls : _TC ) -> _TC : ...
81
85
You can’t perform that action at this time.
0 commit comments