Skip to content

Commit 55c6713

Browse files
authored
Changing the timeout typehint in async BlockingConnectionPool from int to float (#3801)
1 parent 5ee081d commit 55c6713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/asyncio/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ class BlockingConnectionPool(ConnectionPool):
13561356
def __init__(
13571357
self,
13581358
max_connections: int = 50,
1359-
timeout: Optional[int] = 20,
1359+
timeout: Optional[float] = 20,
13601360
connection_class: Type[AbstractConnection] = Connection,
13611361
queue_class: Type[asyncio.Queue] = asyncio.LifoQueue, # deprecated
13621362
**connection_kwargs,

0 commit comments

Comments
 (0)