mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 21:01:52 +08:00
Fix zincrby argument order (#5608)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
version = "0.1"
|
||||
version = "3.5"
|
||||
python2 = true
|
||||
requires = []
|
||||
|
||||
@@ -630,7 +630,7 @@ class Redis(Generic[_StrType]):
|
||||
) -> int: ...
|
||||
def zcard(self, name: _Key) -> int: ...
|
||||
def zcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
|
||||
def zincrby(self, name: _Key, value: _Value, amount: float = ...) -> float: ...
|
||||
def zincrby(self, name: _Key, amount: float, value: _Value) -> float: ...
|
||||
def zinterstore(self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] = ...) -> int: ...
|
||||
def zlexcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
|
||||
def zpopmax(self, name: _Key, count: Optional[int] = ...) -> List[_StrType]: ...
|
||||
@@ -1047,7 +1047,7 @@ class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
) -> Pipeline[_StrType]: ...
|
||||
def zcard(self, name: _Key) -> Pipeline[_StrType]: ... # type: ignore [override]
|
||||
def zcount(self, name: _Key, min: _Value, max: _Value) -> Pipeline[_StrType]: ... # type: ignore [override]
|
||||
def zincrby(self, name: _Key, value: _Value, amount: float = ...) -> Pipeline[_StrType]: ... # type: ignore [override]
|
||||
def zincrby(self, name: _Key, amount: float, value: _Value) -> Pipeline[_StrType]: ... # type: ignore [override]
|
||||
def zinterstore(self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] = ...) -> Pipeline[_StrType]: ... # type: ignore [override]
|
||||
def zlexcount(self, name: _Key, min: _Value, max: _Value) -> Pipeline[_StrType]: ... # type: ignore [override]
|
||||
def zpopmax(self, name: _Key, count: Optional[int] = ...) -> Pipeline[_StrType]: ... # type: ignore [override]
|
||||
|
||||
Reference in New Issue
Block a user