File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,6 @@ def __init__(
227
227
lib_version : Optional [str ] = get_lib_version (),
228
228
username : Optional [str ] = None ,
229
229
retry : Optional [Retry ] = None ,
230
- # deprecated. create a pool and use connection_pool instead
231
230
auto_close_connection_pool : Optional [bool ] = None ,
232
231
redis_connect_func = None ,
233
232
credential_provider : Optional [CredentialProvider ] = None ,
@@ -241,7 +240,9 @@ def __init__(
241
240
To retry on TimeoutError, `retry_on_timeout` can also be set to `True`.
242
241
"""
243
242
kwargs : Dict [str , Any ]
244
-
243
+ # auto_close_connection_pool only has an effect if connection_pool is
244
+ # None. It is assumed that if connection_pool is not None, the user
245
+ # wants to manage the connection pool themselves.
245
246
if auto_close_connection_pool is not None :
246
247
warnings .warn (
247
248
DeprecationWarning (
You can’t perform that action at this time.
0 commit comments