Skip to content

Commit

Permalink
Fix typos. (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
AYMENJD committed Dec 3, 2023
1 parent 8a3ae36 commit e13356d
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/pipeline_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion redis/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,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.
Expand Down
6 changes: 3 additions & 3 deletions redis/commands/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_asyncio/test_cwe_404.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_asyncio/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_graph_utils/test_edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_graph_utils/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit e13356d

Please sign in to comment.