@@ -82,7 +82,7 @@ _T3 = TypeVar("_T3")
8282_T4 = TypeVar ("_T4" )
8383_T5 = TypeVar ("_T5" )
8484_TT = TypeVar ("_TT" , bound = "type" )
85- _LT = TypeVar ("_LT " , bound = _SupportsLessThan )
85+ _SupportsLessThanT = TypeVar ("_SupportsLessThanT " , bound = _SupportsLessThan )
8686_TBE = TypeVar ("_TBE" , bound = "BaseException" )
8787
8888class object :
@@ -962,7 +962,7 @@ class list(MutableSequence[_T], Generic[_T]):
962962 def reverse (self ) -> None : ...
963963 if sys .version_info >= (3 ,):
964964 @overload
965- def sort (self : List [_LT ], * , key : None = ..., reverse : bool = ...) -> None : ...
965+ def sort (self : List [_SupportsLessThanT ], * , key : None = ..., reverse : bool = ...) -> None : ...
966966 @overload
967967 def sort (self , * , key : Callable [[_T ], _SupportsLessThan ], reverse : bool = ...) -> None : ...
968968 else :
@@ -1440,17 +1440,19 @@ else:
14401440
14411441if sys .version_info >= (3 ,):
14421442 @overload
1443- def max (__arg1 : _LT , __arg2 : _LT , * _args : _LT , key : None = ...) -> _LT : ...
1443+ def max (
1444+ __arg1 : _SupportsLessThanT , __arg2 : _SupportsLessThanT , * _args : _SupportsLessThanT , key : None = ...
1445+ ) -> _SupportsLessThanT : ...
14441446 @overload
1445- def max (__arg1 : _T , __arg2 : _T , * _args : _T , key : Callable [[_T ], _LT ]) -> _T : ...
1447+ def max (__arg1 : _T , __arg2 : _T , * _args : _T , key : Callable [[_T ], _SupportsLessThanT ]) -> _T : ...
14461448 @overload
1447- def max (__iterable : Iterable [_LT ], * , key : None = ...) -> _LT : ...
1449+ def max (__iterable : Iterable [_SupportsLessThanT ], * , key : None = ...) -> _SupportsLessThanT : ...
14481450 @overload
1449- def max (__iterable : Iterable [_T ], * , key : Callable [[_T ], _LT ]) -> _T : ...
1451+ def max (__iterable : Iterable [_T ], * , key : Callable [[_T ], _SupportsLessThanT ]) -> _T : ...
14501452 @overload
1451- def max (__iterable : Iterable [_LT ], * , key : None = ..., default : _T ) -> Union [_LT , _T ]: ...
1453+ def max (__iterable : Iterable [_SupportsLessThanT ], * , key : None = ..., default : _T ) -> Union [_SupportsLessThanT , _T ]: ...
14521454 @overload
1453- def max (__iterable : Iterable [_T1 ], * , key : Callable [[_T1 ], _LT ], default : _T2 ) -> Union [_T1 , _T2 ]: ...
1455+ def max (__iterable : Iterable [_T1 ], * , key : Callable [[_T1 ], _SupportsLessThanT ], default : _T2 ) -> Union [_T1 , _T2 ]: ...
14541456
14551457else :
14561458 @overload
@@ -1460,17 +1462,19 @@ else:
14601462
14611463if sys .version_info >= (3 ,):
14621464 @overload
1463- def min (__arg1 : _LT , __arg2 : _LT , * _args : _LT , key : None = ...) -> _LT : ...
1465+ def min (
1466+ __arg1 : _SupportsLessThanT , __arg2 : _SupportsLessThanT , * _args : _SupportsLessThanT , key : None = ...
1467+ ) -> _SupportsLessThanT : ...
14641468 @overload
1465- def min (__arg1 : _T , __arg2 : _T , * _args : _T , key : Callable [[_T ], _LT ]) -> _T : ...
1469+ def min (__arg1 : _T , __arg2 : _T , * _args : _T , key : Callable [[_T ], _SupportsLessThanT ]) -> _T : ...
14661470 @overload
1467- def min (__iterable : Iterable [_LT ], * , key : None = ...) -> _LT : ...
1471+ def min (__iterable : Iterable [_SupportsLessThanT ], * , key : None = ...) -> _SupportsLessThanT : ...
14681472 @overload
1469- def min (__iterable : Iterable [_T ], * , key : Callable [[_T ], _LT ]) -> _T : ...
1473+ def min (__iterable : Iterable [_T ], * , key : Callable [[_T ], _SupportsLessThanT ]) -> _T : ...
14701474 @overload
1471- def min (__iterable : Iterable [_LT ], * , key : None = ..., default : _T ) -> Union [_LT , _T ]: ...
1475+ def min (__iterable : Iterable [_SupportsLessThanT ], * , key : None = ..., default : _T ) -> Union [_SupportsLessThanT , _T ]: ...
14721476 @overload
1473- def min (__iterable : Iterable [_T1 ], * , key : Callable [[_T1 ], _LT ], default : _T2 ) -> Union [_T1 , _T2 ]: ...
1477+ def min (__iterable : Iterable [_T1 ], * , key : Callable [[_T1 ], _SupportsLessThanT ], default : _T2 ) -> Union [_T1 , _T2 ]: ...
14741478
14751479else :
14761480 @overload
@@ -1671,7 +1675,7 @@ def setattr(__obj: Any, __name: Text, __value: Any) -> None: ...
16711675
16721676if sys .version_info >= (3 ,):
16731677 @overload
1674- def sorted (__iterable : Iterable [_LT ], * , key : None = ..., reverse : bool = ...) -> List [_LT ]: ...
1678+ def sorted (__iterable : Iterable [_SupportsLessThanT ], * , key : None = ..., reverse : bool = ...) -> List [_SupportsLessThanT ]: ...
16751679 @overload
16761680 def sorted (__iterable : Iterable [_T ], * , key : Callable [[_T ], _SupportsLessThan ], reverse : bool = ...) -> List [_T ]: ...
16771681
0 commit comments