mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
heapq: re-export, add __about__ (#7308)
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
from _heapq import *
|
||||
from _typeshed import SupportsRichComparison
|
||||
from typing import Any, Callable, Iterable, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_S = TypeVar("_S")
|
||||
|
||||
def heappush(__heap: list[_T], __item: _T) -> None: ...
|
||||
def heappop(__heap: list[_T]) -> _T: ...
|
||||
def heappushpop(__heap: list[_T], __item: _T) -> _T: ...
|
||||
def heapify(__heap: list[Any]) -> None: ...
|
||||
def heapreplace(__heap: list[_T], __item: _T) -> _T: ...
|
||||
def merge(*iterables: Iterable[_T], key: Callable[[_T], Any] | None = ..., reverse: bool = ...) -> Iterable[_T]: ...
|
||||
def nlargest(n: int, iterable: Iterable[_T], key: Callable[[_T], SupportsRichComparison] | None = ...) -> list[_T]: ...
|
||||
def nsmallest(n: int, iterable: Iterable[_T], key: Callable[[_T], SupportsRichComparison] | None = ...) -> list[_T]: ...
|
||||
__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
|
||||
|
||||
Reference in New Issue
Block a user