mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
13 lines
575 B
Python
13 lines
575 B
Python
from _heapq import *
|
|
from _typeshed import SupportsRichComparison
|
|
from typing import Any, Callable, Iterable, TypeVar
|
|
|
|
_S = TypeVar("_S")
|
|
|
|
__about__: str
|
|
|
|
def merge(*iterables: Iterable[_S], key: Callable[[_S], Any] | None = ..., reverse: bool = ...) -> Iterable[_S]: ...
|
|
def nlargest(n: int, iterable: Iterable[_S], key: Callable[[_S], SupportsRichComparison] | None = ...) -> list[_S]: ...
|
|
def nsmallest(n: int, iterable: Iterable[_S], key: Callable[[_S], SupportsRichComparison] | None = ...) -> list[_S]: ...
|
|
def _heapify_max(__x: list[Any]) -> None: ... # undocumented
|