From c1a881edf23937c29183c97311d43cc8a251fd5e Mon Sep 17 00:00:00 2001 From: AYMEN Mohammed <53928879+AYMENJD@users.noreply.github.com> Date: Sun, 3 Dec 2023 03:53:30 +0300 Subject: [PATCH] Fix typos. (#3016) --- docs/conf.py | 2 +- docs/examples/pipeline_examples.ipynb | 2 +- redis/cluster.py | 2 +- redis/commands/cluster.py | 6 +++--- tests/test_asyncio/test_cwe_404.py | 2 +- tests/test_asyncio/test_search.py | 2 +- tests/test_graph.py | 2 +- tests/test_graph_utils/test_edge.py | 2 +- tests/test_graph_utils/test_node.py | 2 +- tests/test_search.py | 4 ++-- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 8849752404..a201da2fc0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -86,7 +86,7 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. -exclude_patterns = ["_build", "**.ipynb_checkponts"] +exclude_patterns = ["_build", "**.ipynb_checkpoints"] # The reST default role (used for this markup: `text`) to use for all # documents. diff --git a/docs/examples/pipeline_examples.ipynb b/docs/examples/pipeline_examples.ipynb index 4e20375bfa..36ce31d708 100644 --- a/docs/examples/pipeline_examples.ipynb +++ b/docs/examples/pipeline_examples.ipynb @@ -123,7 +123,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The responses of the three commands are stored in a list. In the above example, the two first boolean indicates that the `set` commands were successfull and the last element of the list is the result of the `get(\"a\")` comand." + "The responses of the three commands are stored in a list. In the above example, the two first boolean indicates that the `set` commands were successful and the last element of the list is the result of the `get(\"a\")` comand." ] }, { diff --git a/redis/cluster.py b/redis/cluster.py index 873d586c4a..66857ccac2 100644 --- a/redis/cluster.py +++ b/redis/cluster.py @@ -2196,7 +2196,7 @@ def _send_cluster_commands( ) if attempt and allow_redirections: # RETRY MAGIC HAPPENS HERE! - # send these remaing commands one at a time using `execute_command` + # send these remaining 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/cluster.py b/redis/commands/cluster.py index 14b8741443..eff2059948 100644 --- a/redis/commands/cluster.py +++ b/redis/commands/cluster.py @@ -225,7 +225,7 @@ def delete(self, *keys: KeyT) -> ResponseT: The keys are first split up into slots and then an DEL command is sent for every slot - Non-existant keys are ignored. + Non-existent keys are ignored. Returns the number of keys that were deleted. For more information see https://redis.io/commands/del @@ -240,7 +240,7 @@ def touch(self, *keys: KeyT) -> ResponseT: The keys are first split up into slots and then an TOUCH command is sent for every slot - Non-existant keys are ignored. + Non-existent keys are ignored. Returns the number of keys that were touched. For more information see https://redis.io/commands/touch @@ -254,7 +254,7 @@ def unlink(self, *keys: KeyT) -> ResponseT: The keys are first split up into slots and then an TOUCH command is sent for every slot - Non-existant keys are ignored. + Non-existent keys are ignored. Returns the number of keys that were unlinked. For more information see https://redis.io/commands/unlink diff --git a/tests/test_asyncio/test_cwe_404.py b/tests/test_asyncio/test_cwe_404.py index bb9f1780ac..df46cabc43 100644 --- a/tests/test_asyncio/test_cwe_404.py +++ b/tests/test_asyncio/test_cwe_404.py @@ -253,7 +253,7 @@ async def op(r): with pytest.raises(asyncio.CancelledError): await t - # try a number of requests to excercise all the connections + # try a number of requests to exercise all the connections async def doit(): assert await r.get("bar") == b"bar" assert await r.ping() diff --git a/tests/test_asyncio/test_search.py b/tests/test_asyncio/test_search.py index efc5bf549c..1f1931e28a 100644 --- a/tests/test_asyncio/test_search.py +++ b/tests/test_asyncio/test_search.py @@ -1503,7 +1503,7 @@ async def test_withsuffixtrie(decoded_r: redis.Redis): assert "WITHSUFFIXTRIE" not in info["attributes"][0]["flags"] assert await decoded_r.ft().dropindex("idx") - # create withsuffixtrie index (text fiels) + # create withsuffixtrie index (text fields) assert await decoded_r.ft().create_index((TextField("t", withsuffixtrie=True))) waitForIndex(decoded_r, getattr(decoded_r.ft(), "index_name", "idx")) info = await decoded_r.ft().info() diff --git a/tests/test_graph.py b/tests/test_graph.py index 6fa9977d98..c6d128908e 100644 --- a/tests/test_graph.py +++ b/tests/test_graph.py @@ -404,7 +404,7 @@ def test_cache_sync(client): # Client B will try to get Client A out of sync by: # 1. deleting the graph # 2. reconstructing the graph in a different order, this will casuse - # a differance in the current mapping between string IDs and the + # a difference in the current mapping between string IDs and the # mapping Client A is aware of # # Client A should pick up on the changes by comparing graph versions diff --git a/tests/test_graph_utils/test_edge.py b/tests/test_graph_utils/test_edge.py index d2a1e3f39e..1918a6ff44 100644 --- a/tests/test_graph_utils/test_edge.py +++ b/tests/test_graph_utils/test_edge.py @@ -61,7 +61,7 @@ def test_stringify(): @pytest.mark.redismod -def test_comparision(): +def test_comparison(): node1 = node.Node(node_id=1) node2 = node.Node(node_id=2) node3 = node.Node(node_id=3) diff --git a/tests/test_graph_utils/test_node.py b/tests/test_graph_utils/test_node.py index c3b34ac6ff..22e6d59414 100644 --- a/tests/test_graph_utils/test_node.py +++ b/tests/test_graph_utils/test_node.py @@ -33,7 +33,7 @@ def test_stringify(fixture): @pytest.mark.redismod -def test_comparision(fixture): +def test_comparison(fixture): no_args, no_props, props_only, no_label, multi_label = fixture assert node.Node() == node.Node() diff --git a/tests/test_search.py b/tests/test_search.py index 7469123453..bfe204254c 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -2227,7 +2227,7 @@ def test_withsuffixtrie(client: redis.Redis): assert "WITHSUFFIXTRIE" not in info["attributes"][0] assert client.ft().dropindex("idx") - # create withsuffixtrie index (text fiels) + # create withsuffixtrie index (text fields) assert client.ft().create_index((TextField("t", withsuffixtrie=True))) waitForIndex(client, getattr(client.ft(), "index_name", "idx")) info = client.ft().info() @@ -2244,7 +2244,7 @@ def test_withsuffixtrie(client: redis.Redis): assert "WITHSUFFIXTRIE" not in info["attributes"][0]["flags"] assert client.ft().dropindex("idx") - # create withsuffixtrie index (text fiels) + # create withsuffixtrie index (text fields) assert client.ft().create_index((TextField("t", withsuffixtrie=True))) waitForIndex(client, getattr(client.ft(), "index_name", "idx")) info = client.ft().info()