mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix redis pipe.hset() signature (#5196)
This commit is contained in:
@@ -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