Fix type of blocking_timeout argument to redis.lock.Lock (#6019)

This commit is contained in:
Jungkook Park
2021-09-10 11:27:05 +09:00
committed by GitHub
parent 9295c70ec0
commit 18d4868fce

View File

@@ -10,10 +10,10 @@ class Lock:
self,
redis: Redis[Any],
name: str,
timeout: None | int | float = ...,
timeout: float | None = ...,
sleep: float = ...,
blocking: bool = ...,
blocking_timeout: bool | None = ...,
blocking_timeout: float | None = ...,
thread_local: bool = ...,
) -> None: ...
def register_scripts(self) -> None: ...