File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
@tests/stubtest_allowlists Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 33# ====================================================================
44
55_asyncio.all_tasks
6- _heapq.heapify_max
7- _heapq.heappop_max
8- _heapq.heappush_max
9- _heapq.heappushpop_max
10- _heapq.heapreplace_max
116_imp.pyc_magic_number_token
127_thread.RLock.locked
138_thread.set_name
Original file line number Diff line number Diff line change 1+ import sys
12from typing import Any , Final , TypeVar
23
3- _T = TypeVar ("_T" )
4+ _T = TypeVar ("_T" ) # list items must be comparable
45
56__about__ : Final [str ]
67
7- def heapify (heap : list [Any ], / ) -> None : ...
8+ def heapify (heap : list [Any ], / ) -> None : ... # list items must be comparable
89def heappop (heap : list [_T ], / ) -> _T : ...
910def heappush (heap : list [_T ], item : _T , / ) -> None : ...
1011def heappushpop (heap : list [_T ], item : _T , / ) -> _T : ...
1112def heapreplace (heap : list [_T ], item : _T , / ) -> _T : ...
13+
14+ if sys .version_info >= (3 , 14 ):
15+ def heapify_max (heap : list [Any ], / ) -> None : ... # list items must be comparable
16+ def heappop_max (heap : list [_T ], / ) -> _T : ...
17+ def heappush_max (heap : list [_T ], item : _T , / ) -> None : ...
18+ def heappushpop_max (heap : list [_T ], item : _T , / ) -> _T : ...
19+ def heapreplace_max (heap : list [_T ], item : _T , / ) -> _T : ...
You can’t perform that action at this time.
0 commit comments