File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import sys
2- from _typeshed import ( # All type variable use in this module requires comparability.
3- SupportsRichComparison ,
4- SupportsRichComparisonT as _T ,
5- )
2+ from _typeshed import SupportsRichComparisonT as _T # All type variable use in this module requires comparability.
63from typing import Final
74
85__about__ : Final [str ]
96
10- def heapify (heap : list [SupportsRichComparison ], / ) -> None : ...
7+ def heapify (heap : list [_T ], / ) -> None : ... # To work around the fact that list is invariant
118def heappop (heap : list [_T ], / ) -> _T : ...
129def heappush (heap : list [_T ], item : _T , / ) -> None : ...
1310def heappushpop (heap : list [_T ], item : _T , / ) -> _T : ...
1411def heapreplace (heap : list [_T ], item : _T , / ) -> _T : ...
1512
1613if sys .version_info >= (3 , 14 ):
17- def heapify_max (heap : list [SupportsRichComparison ], / ) -> None : ...
14+ def heapify_max (heap : list [_T ], / ) -> None : ...
1815 def heappop_max (heap : list [_T ], / ) -> _T : ...
1916 def heappush_max (heap : list [_T ], item : _T , / ) -> None : ...
2017 def heappushpop_max (heap : list [_T ], item : _T , / ) -> _T : ...
You can’t perform that action at this time.
0 commit comments