Skip to content

Commit e13356d

Browse files
authored
Fix typos. (#3016)
1 parent 8a3ae36 commit e13356d

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
# List of patterns, relative to source directory, that match files and
8888
# directories to ignore when looking for source files.
89-
exclude_patterns = ["_build", "**.ipynb_checkponts"]
89+
exclude_patterns = ["_build", "**.ipynb_checkpoints"]
9090

9191
# The reST default role (used for this markup: `text`) to use for all
9292
# documents.

docs/examples/pipeline_examples.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"cell_type": "markdown",
124124
"metadata": {},
125125
"source": [
126-
"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."
126+
"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."
127127
]
128128
},
129129
{

redis/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,7 @@ def _send_cluster_commands(
21982198
)
21992199
if attempt and allow_redirections:
22002200
# RETRY MAGIC HAPPENS HERE!
2201-
# send these remaing commands one at a time using `execute_command`
2201+
# send these remaining commands one at a time using `execute_command`
22022202
# in the main client. This keeps our retry logic
22032203
# in one place mostly,
22042204
# and allows us to be more confident in correctness of behavior.

redis/commands/cluster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def delete(self, *keys: KeyT) -> ResponseT:
225225
The keys are first split up into slots
226226
and then an DEL command is sent for every slot
227227
228-
Non-existant keys are ignored.
228+
Non-existent keys are ignored.
229229
Returns the number of keys that were deleted.
230230
231231
For more information see https://redis.io/commands/del
@@ -240,7 +240,7 @@ def touch(self, *keys: KeyT) -> ResponseT:
240240
The keys are first split up into slots
241241
and then an TOUCH command is sent for every slot
242242
243-
Non-existant keys are ignored.
243+
Non-existent keys are ignored.
244244
Returns the number of keys that were touched.
245245
246246
For more information see https://redis.io/commands/touch
@@ -254,7 +254,7 @@ def unlink(self, *keys: KeyT) -> ResponseT:
254254
The keys are first split up into slots
255255
and then an TOUCH command is sent for every slot
256256
257-
Non-existant keys are ignored.
257+
Non-existent keys are ignored.
258258
Returns the number of keys that were unlinked.
259259
260260
For more information see https://redis.io/commands/unlink

tests/test_asyncio/test_cwe_404.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ async def op(r):
253253
with pytest.raises(asyncio.CancelledError):
254254
await t
255255

256-
# try a number of requests to excercise all the connections
256+
# try a number of requests to exercise all the connections
257257
async def doit():
258258
assert await r.get("bar") == b"bar"
259259
assert await r.ping()

tests/test_asyncio/test_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ async def test_withsuffixtrie(decoded_r: redis.Redis):
15031503
assert "WITHSUFFIXTRIE" not in info["attributes"][0]["flags"]
15041504
assert await decoded_r.ft().dropindex("idx")
15051505

1506-
# create withsuffixtrie index (text fiels)
1506+
# create withsuffixtrie index (text fields)
15071507
assert await decoded_r.ft().create_index((TextField("t", withsuffixtrie=True)))
15081508
waitForIndex(decoded_r, getattr(decoded_r.ft(), "index_name", "idx"))
15091509
info = await decoded_r.ft().info()

tests/test_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def test_cache_sync(client):
404404
# Client B will try to get Client A out of sync by:
405405
# 1. deleting the graph
406406
# 2. reconstructing the graph in a different order, this will casuse
407-
# a differance in the current mapping between string IDs and the
407+
# a difference in the current mapping between string IDs and the
408408
# mapping Client A is aware of
409409
#
410410
# Client A should pick up on the changes by comparing graph versions

tests/test_graph_utils/test_edge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_stringify():
6161

6262

6363
@pytest.mark.redismod
64-
def test_comparision():
64+
def test_comparison():
6565
node1 = node.Node(node_id=1)
6666
node2 = node.Node(node_id=2)
6767
node3 = node.Node(node_id=3)

tests/test_graph_utils/test_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_stringify(fixture):
3333

3434

3535
@pytest.mark.redismod
36-
def test_comparision(fixture):
36+
def test_comparison(fixture):
3737
no_args, no_props, props_only, no_label, multi_label = fixture
3838

3939
assert node.Node() == node.Node()

tests/test_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,7 +2227,7 @@ def test_withsuffixtrie(client: redis.Redis):
22272227
assert "WITHSUFFIXTRIE" not in info["attributes"][0]
22282228
assert client.ft().dropindex("idx")
22292229

2230-
# create withsuffixtrie index (text fiels)
2230+
# create withsuffixtrie index (text fields)
22312231
assert client.ft().create_index((TextField("t", withsuffixtrie=True)))
22322232
waitForIndex(client, getattr(client.ft(), "index_name", "idx"))
22332233
info = client.ft().info()
@@ -2244,7 +2244,7 @@ def test_withsuffixtrie(client: redis.Redis):
22442244
assert "WITHSUFFIXTRIE" not in info["attributes"][0]["flags"]
22452245
assert client.ft().dropindex("idx")
22462246

2247-
# create withsuffixtrie index (text fiels)
2247+
# create withsuffixtrie index (text fields)
22482248
assert client.ft().create_index((TextField("t", withsuffixtrie=True)))
22492249
waitForIndex(client, getattr(client.ft(), "index_name", "idx"))
22502250
info = client.ft().info()

0 commit comments

Comments
 (0)