Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit c5e63df

Browse files
Fix some typos. (redis/redis-py#1496) Signed-off-by: Andrew-Chen-Wang <[email protected]>
1 parent 335fad9 commit c5e63df

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

aioredis/client.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def parse_georadius_generic(response, **options):
522522
"withhash": int,
523523
}
524524

525-
# zip all output results with each casting functino to get
525+
# zip all output results with each casting function to get
526526
# the properly native Python value.
527527
f = [lambda x: x]
528528
f += [cast[o] for o in ["withdist", "withhash", "withcoord"] if options[o]]
@@ -592,7 +592,7 @@ def parse_client_info(value):
592592
key, value = info.split("=")
593593
client_info[key] = value
594594

595-
# Those fields are definded as int in networking.c
595+
# Those fields are defined as int in networking.c
596596
for int_key in {
597597
"id",
598598
"age",
@@ -1751,7 +1751,7 @@ def bitcount(
17511751
) -> Awaitable:
17521752
"""
17531753
Returns the count of set bits in the value of ``key``. Optional
1754-
``start`` and ``end`` paramaters indicate which bytes to consider
1754+
``start`` and ``end`` parameters indicate which bytes to consider
17551755
"""
17561756
params: List[EncodableT] = [key]
17571757
if start is not None and end is not None:
@@ -1786,7 +1786,7 @@ def bitpos(
17861786
) -> Awaitable:
17871787
"""
17881788
Return the position of the first bit set to 1 or 0 in a string.
1789-
``start`` and ``end`` difines search range. The range is interpreted
1789+
``start`` and ``end`` defines search range. The range is interpreted
17901790
as a range of bytes and not a range of bits, so start=0 and end=2
17911791
means to look at the first three bytes.
17921792
"""
@@ -2813,7 +2813,7 @@ def xack(self, name: KeyT, groupname: GroupT, *ids: StreamIdT) -> Awaitable:
28132813
Acknowledges the successful processing of one or more messages.
28142814
name: name of the stream.
28152815
groupname: name of the consumer group.
2816-
*ids: message ids to acknowlege.
2816+
*ids: message ids to acknowledge.
28172817
"""
28182818
return self.execute_command("XACK", name, groupname, *ids)
28192819

@@ -5004,7 +5004,7 @@ async def __call__(
50045004
try:
50055005
return await client.evalsha(self.sha, len(keys), *args)
50065006
except NoScriptError:
5007-
# Maybe the client is pointed to a differnet server than the client
5007+
# Maybe the client is pointed to a different server than the client
50085008
# that created this instance?
50095009
# Overwrite the sha just in case there was a discrepancy.
50105010
self.sha = await client.script_load(self.script)

aioredis/sentinel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def master_for(
268268
Returns a redis client instance for the ``service_name`` master.
269269
270270
A :py:class:`~redis.sentinel.SentinelConnectionPool` class is
271-
used to retrive the master's address before establishing a new
271+
used to retrieve the master's address before establishing a new
272272
connection.
273273
274274
NOTE: If the master's address has changed, any cached connections to
@@ -305,7 +305,7 @@ def slave_for(
305305
"""
306306
Returns redis client instance for the ``service_name`` slave(s).
307307
308-
A SentinelConnectionPool class is used to retrive the slave's
308+
A SentinelConnectionPool class is used to retrieve the slave's
309309
address before establishing a new connection.
310310
311311
By default clients will be a :py:class:`~redis.Redis` instance.

0 commit comments

Comments
 (0)