Skip to content

Commit 18d4868

Browse files
authored
Fix type of blocking_timeout argument to redis.lock.Lock (#6019)
1 parent 9295c70 commit 18d4868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/redis/redis/lock.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ class Lock:
1010
self,
1111
redis: Redis[Any],
1212
name: str,
13-
timeout: None | int | float = ...,
13+
timeout: float | None = ...,
1414
sleep: float = ...,
1515
blocking: bool = ...,
16-
blocking_timeout: bool | None = ...,
16+
blocking_timeout: float | None = ...,
1717
thread_local: bool = ...,
1818
) -> None: ...
1919
def register_scripts(self) -> None: ...

0 commit comments

Comments
 (0)