Allow floats for Redis timeouts (#4952)

Since Redis 6.0, floats are allowed, see:
https://redis.io/commands/brpop
This commit is contained in:
Guillaume Ayoub
2021-01-19 16:01:39 +01:00
committed by GitHub
parent b4e447d70a
commit 7b3a0b2278

View File

@@ -374,8 +374,8 @@ class Redis(Generic[_StrType]):
def watch(self, *names): ...
def unlink(self, *names: _Key) -> int: ...
def unwatch(self): ...
def blpop(self, keys: Union[_Value, Iterable[_Value]], timeout: int = ...) -> Optional[Tuple[_StrType, _StrType]]: ...
def brpop(self, keys: Union[_Value, Iterable[_Value]], timeout: int = ...) -> Optional[Tuple[_StrType, _StrType]]: ...
def blpop(self, keys: Union[_Value, Iterable[_Value]], timeout: float = ...) -> Optional[Tuple[_StrType, _StrType]]: ...
def brpop(self, keys: Union[_Value, Iterable[_Value]], timeout: float = ...) -> Optional[Tuple[_StrType, _StrType]]: ...
def brpoplpush(self, src, dst, timeout=...): ...
def lindex(self, name: _Key, index: int) -> Optional[_StrType]: ...
def linsert(