@@ -522,7 +522,7 @@ def parse_georadius_generic(response, **options):
522
522
"withhash" : int ,
523
523
}
524
524
525
- # zip all output results with each casting functino to get
525
+ # zip all output results with each casting function to get
526
526
# the properly native Python value.
527
527
f = [lambda x : x ]
528
528
f += [cast [o ] for o in ["withdist" , "withhash" , "withcoord" ] if options [o ]]
@@ -592,7 +592,7 @@ def parse_client_info(value):
592
592
key , value = info .split ("=" )
593
593
client_info [key ] = value
594
594
595
- # Those fields are definded as int in networking.c
595
+ # Those fields are defined as int in networking.c
596
596
for int_key in {
597
597
"id" ,
598
598
"age" ,
@@ -1751,7 +1751,7 @@ def bitcount(
1751
1751
) -> Awaitable :
1752
1752
"""
1753
1753
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
1755
1755
"""
1756
1756
params : List [EncodableT ] = [key ]
1757
1757
if start is not None and end is not None :
@@ -1786,7 +1786,7 @@ def bitpos(
1786
1786
) -> Awaitable :
1787
1787
"""
1788
1788
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
1790
1790
as a range of bytes and not a range of bits, so start=0 and end=2
1791
1791
means to look at the first three bytes.
1792
1792
"""
@@ -2813,7 +2813,7 @@ def xack(self, name: KeyT, groupname: GroupT, *ids: StreamIdT) -> Awaitable:
2813
2813
Acknowledges the successful processing of one or more messages.
2814
2814
name: name of the stream.
2815
2815
groupname: name of the consumer group.
2816
- *ids: message ids to acknowlege .
2816
+ *ids: message ids to acknowledge .
2817
2817
"""
2818
2818
return self .execute_command ("XACK" , name , groupname , * ids )
2819
2819
@@ -5004,7 +5004,7 @@ async def __call__(
5004
5004
try :
5005
5005
return await client .evalsha (self .sha , len (keys ), * args )
5006
5006
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
5008
5008
# that created this instance?
5009
5009
# Overwrite the sha just in case there was a discrepancy.
5010
5010
self .sha = await client .script_load (self .script )
0 commit comments