mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
Fix redis pipe.hset() signature (#5196)
This commit is contained in:
1 parent
5fef564636
commit
8eaffee63a
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user