[redis] Update hset signature to include mapping kwarg (#4293)

This commit is contained in:
Christine
2020-06-30 03:41:01 -04:00
committed by GitHub
parent f0269cd438
commit 8cf3cd398e

View File

@@ -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]]: ...