Fix redis pipe.hset() signature (#5196)

This commit is contained in:
dearoneesama
2021-04-08 22:03:51 -04:00
committed by GitHub
parent 5fef564636
commit 8eaffee63a

View File

@@ -1099,7 +1099,7 @@ class Pipeline(Redis):
@overload # type: ignore [override]
def hset(self, name: _Key, key: _Key, value: _Value, mapping: Optional[Mapping[_Key, _Value]] = ...) -> Pipeline: ...
@overload # type: ignore [override]
def hset(self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value]) -> int: ...
def hset(self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value]) -> Pipeline: ...
@overload # type: ignore [override]
def hset(self, name: _Key, *, mapping: Mapping[_Key, _Value]) -> Pipeline: ...
def hsetnx(self, name: _Key, key: _Key, value: _Value) -> Pipeline: ... # type: ignore [override]