mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 11:32:07 +08:00
[redis] Update hset signature to include mapping kwarg (#4293)
This commit is contained in:
4
third_party/2and3/redis/client.pyi
vendored
4
third_party/2and3/redis/client.pyi
vendored
@@ -274,7 +274,9 @@ class Redis(object):
|
||||
def hincrbyfloat(self, name: _Key, key: _Key, amount: float = ...) -> float: ...
|
||||
def hkeys(self, name: _Key) -> List[bytes]: ...
|
||||
def hlen(self, name: _Key) -> int: ...
|
||||
def hset(self, name: _Key, key: _Key, value: _Value) -> int: ...
|
||||
def hset(
|
||||
self, name: _Key, key: Optional[_Key], value: Optional[_Value], mapping: Optional[Mapping[_Value, _Value]] = ...
|
||||
) -> int: ...
|
||||
def hsetnx(self, name: _Key, key: _Key, value: _Value) -> int: ...
|
||||
def hmset(self, name: _Key, mapping: Mapping[_Value, _Value]) -> bool: ...
|
||||
def hmget(self, name: _Key, keys: Union[_Key, Iterable[_Key]], *args: _Key) -> List[Optional[bytes]]: ...
|
||||
|
||||
Reference in New Issue
Block a user