Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos. #3016

Merged
merged 1 commit into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -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.
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
4 changes: 2 additions & 2 deletions redis/ocsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _check_certificate(issuer_cert, ocsp_bytes, validate=True):
)
else:
raise ConnectionError(
"failed to retrieve a sucessful response from the ocsp responder"
"failed to retrieve a successful response from the ocsp responder"
)

if ocsp_response.this_update >= datetime.datetime.now():
Expand Down Expand Up @@ -266,7 +266,7 @@ def build_certificate_url(self, server, cert, issuer_cert):
return url

def check_certificate(self, server, cert, issuer_url):
"""Checks the validitity of an ocsp server for an issuer"""
"""Checks the validity of an ocsp server for an issuer"""

r = requests.get(issuer_url)
if not r.ok:
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