From 6a6d5d8fd224a2a41cbff473cbdc490acb17ed5b Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Wed, 9 Jun 2021 20:16:34 +0200 Subject: [PATCH] Fix zincrby argument order (#5608) --- stubs/redis/METADATA.toml | 2 +- stubs/redis/redis/client.pyi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stubs/redis/METADATA.toml b/stubs/redis/METADATA.toml index e43ccaae3..ec34fb223 100644 --- a/stubs/redis/METADATA.toml +++ b/stubs/redis/METADATA.toml @@ -1,3 +1,3 @@ -version = "0.1" +version = "3.5" python2 = true requires = [] diff --git a/stubs/redis/redis/client.pyi b/stubs/redis/redis/client.pyi index 2119e0507..6d8c559e6 100644 --- a/stubs/redis/redis/client.pyi +++ b/stubs/redis/redis/client.pyi @@ -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]