mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Fix Redis.zpopmin and zpopmax (#6642)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
@@ -137,8 +137,8 @@ class CoreCommands(Generic[_StrType]):
|
||||
def zincrby(self, name: _Key, amount: float, value: _Value) -> float: ...
|
||||
def zinterstore(self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = ...) -> int: ...
|
||||
def zlexcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
|
||||
def zpopmax(self, name: _Key, count: int | None = ...) -> list[_StrType]: ...
|
||||
def zpopmin(self, name: _Key, count: int | None = ...) -> list[_StrType]: ...
|
||||
def zpopmax(self, name: _Key, count: int | None = ...) -> list[tuple[_StrType, float]]: ...
|
||||
def zpopmin(self, name: _Key, count: int | None = ...) -> list[tuple[_StrType, float]]: ...
|
||||
@overload
|
||||
def bzpopmax(self, keys: _Key | Iterable[_Key], timeout: Literal[0] = ...) -> tuple[_StrType, _StrType, float]: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user