Fix typo in deprecation warning (#1866)

Help when grepping through warnings.
main
Jochen Kupperschmidt 2 years ago committed by GitHub
parent 64e202ea19
commit 60164c5107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,7 +32,7 @@ def Connection(connection: Optional['Redis'] = None): # noqa
connection (Optional[Redis], optional): A Redis Connection instance. Defaults to None. connection (Optional[Redis], optional): A Redis Connection instance. Defaults to None.
""" """
warnings.warn( warnings.warn(
"The Conneciton context manager is deprecated. Use the `connection` parameter instead.", "The Connection context manager is deprecated. Use the `connection` parameter instead.",
DeprecationWarning, DeprecationWarning,
) )
if connection is None: if connection is None:

Loading…
Cancel
Save