diff options
author | Utkarsh Gupta <utkarshgupta137@gmail.com> | 2022-05-30 20:05:19 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 17:35:19 +0300 |
commit | c54dfa49dda6a7b3389dc230726293af3ffc68a3 (patch) | |
tree | fd972a79a8bef1b29829426c86a7386abb44ba73 /redis/asyncio | |
parent | f704281cf4c1f735c06a13946fcea42fa939e3a5 (diff) | |
download | redis-py-c54dfa49dda6a7b3389dc230726293af3ffc68a3.tar.gz |
update black to 22.3.0 (#2171)
Diffstat (limited to 'redis/asyncio')
-rw-r--r-- | redis/asyncio/cluster.py | 2 | ||||
-rw-r--r-- | redis/asyncio/connection.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/redis/asyncio/cluster.py b/redis/asyncio/cluster.py index c4e01d6..39aa536 100644 --- a/redis/asyncio/cluster.py +++ b/redis/asyncio/cluster.py @@ -746,7 +746,7 @@ class ClusterNode: host: str, port: int, server_type: Optional[str] = None, - max_connections: int = 2 ** 31, + max_connections: int = 2**31, connection_class: Type[Connection] = Connection, response_callbacks: Dict[str, Any] = RedisCluster.RESPONSE_CALLBACKS, **connection_kwargs: Any, diff --git a/redis/asyncio/connection.py b/redis/asyncio/connection.py index d9b0974..38465fc 100644 --- a/redis/asyncio/connection.py +++ b/redis/asyncio/connection.py @@ -1390,7 +1390,7 @@ class ConnectionPool: max_connections: Optional[int] = None, **connection_kwargs, ): - max_connections = max_connections or 2 ** 31 + max_connections = max_connections or 2**31 if not isinstance(max_connections, int) or max_connections < 0: raise ValueError('"max_connections" must be a positive integer') |