diff --git a/redis/cluster.py b/redis/cluster.py index 6034e9606f..9e773b2190 100644 --- a/redis/cluster.py +++ b/redis/cluster.py @@ -2025,7 +2025,7 @@ def _send_cluster_commands( ) if attempt and allow_redirections: # RETRY MAGIC HAPPENS HERE! - # send these remaing comamnds one at a time using `execute_command` + # send these remaing commands one at a time using `execute_command` # in the main client. This keeps our retry logic # in one place mostly, # and allows us to be more confident in correctness of behavior. diff --git a/redis/commands/core.py b/redis/commands/core.py index 6d67415aab..027d3dbc7c 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -5459,7 +5459,7 @@ def geosearch( `m` for meters (the default value), `km` for kilometers, `mi` for miles and `ft` for feet. ``sort`` indicates to return the places in a sorted way, - ASC for nearest to farest and DESC for farest to nearest. + ASC for nearest to furthest and DESC for furthest to nearest. ``count`` limit the results to the first count matching items. ``any`` is set to True, the command will return as soon as enough matches are found. Can't be provided without ``count`` diff --git a/redis/ocsp.py b/redis/ocsp.py index 4753434fba..0d2c0fc453 100644 --- a/redis/ocsp.py +++ b/redis/ocsp.py @@ -292,7 +292,7 @@ def is_valid(self): This first retrieves for validate the certificate, issuer_url, and ocsp_server for certificate validate. Then retrieves the issuer certificate from the issuer_url, and finally checks - the valididy of OCSP revocation status. + the validity of OCSP revocation status. """ # validate the certificate diff --git a/tests/test_cluster.py b/tests/test_cluster.py index 03533230fe..5652673af9 100644 --- a/tests/test_cluster.py +++ b/tests/test_cluster.py @@ -672,7 +672,7 @@ def __init__(self, val=0): with patch.object(Redis, "parse_response") as parse_response: def moved_redirect_effect(connection, *args, **options): - # raise a timeout for 5 times so we'll need to reinitilize the topology + # raise a timeout for 5 times so we'll need to reinitialize the topology if count.val == 4: parse_response.side_effect = real_func count.val += 1