@@ -82,22 +82,19 @@ class SupportsNext(Protocol[_T_co]):
82
82
class SupportsAnext (Protocol [_T_co ]):
83
83
def __anext__ (self ) -> Awaitable [_T_co ]: ...
84
84
85
- class SupportsBool (Protocol ):
86
- def __bool__ (self ) -> bool : ...
87
-
88
85
# Comparison protocols
89
86
90
87
class SupportsDunderLT (Protocol [_T_contra ]):
91
- def __lt__ (self , other : _T_contra , / ) -> SupportsBool : ...
88
+ def __lt__ (self , other : _T_contra , / ) -> bool : ...
92
89
93
90
class SupportsDunderGT (Protocol [_T_contra ]):
94
- def __gt__ (self , other : _T_contra , / ) -> SupportsBool : ...
91
+ def __gt__ (self , other : _T_contra , / ) -> bool : ...
95
92
96
93
class SupportsDunderLE (Protocol [_T_contra ]):
97
- def __le__ (self , other : _T_contra , / ) -> SupportsBool : ...
94
+ def __le__ (self , other : _T_contra , / ) -> bool : ...
98
95
99
96
class SupportsDunderGE (Protocol [_T_contra ]):
100
- def __ge__ (self , other : _T_contra , / ) -> SupportsBool : ...
97
+ def __ge__ (self , other : _T_contra , / ) -> bool : ...
101
98
102
99
class SupportsAllComparisons (
103
100
SupportsDunderLT [Any ], SupportsDunderGT [Any ], SupportsDunderLE [Any ], SupportsDunderGE [Any ], Protocol
0 commit comments