Skip to content

Commit c879ba2

Browse files
committed
heapq: Extend __all__ (3.14+)
1 parent a3c8f7c commit c879ba2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

stdlib/heapq.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1+
import sys
12
from _heapq import *
23
from _typeshed import SupportsRichComparison
34
from collections.abc import Callable, Generator, Iterable
45
from typing import Any, Final, TypeVar
56

67
__all__ = ["heappush", "heappop", "heapify", "heapreplace", "merge", "nlargest", "nsmallest", "heappushpop"]
78

9+
if sys.version_info >= (3, 14):
10+
__all__ += [
11+
"heapify_max",
12+
"heappop_max",
13+
"heappush_max",
14+
"heappushpop_max",
15+
"heapreplace_max",
16+
]
17+
818
_S = TypeVar("_S")
919

1020
__about__: Final[str]

0 commit comments

Comments
 (0)