Skip to content

Commit dc874b3

Browse files
committed
Docs: Resolve "start-string without end-string" warnings
1 parent af2e76f commit dc874b3

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

redis/commands/core.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def acl_dryrun(self, username, *args, **kwargs):
7979

8080
def acl_deluser(self, *username: str, **kwargs) -> ResponseT:
8181
"""
82-
Delete the ACL for the specified ``username``s
82+
Delete the ACL for the specified ``username``\\s
8383
8484
For more information see https://redis.io/commands/acl-deluser
8585
"""
@@ -227,9 +227,10 @@ def acl_setuser(
227227
must be prefixed with either a '+' to add the command permission
228228
or a '-' to remove the command permission.
229229
keys: A list of key patterns to grant the user access to. Key patterns allow
230-
'*' to support wildcard matching. For example, '*' grants access to
231-
all keys while 'cache:*' grants access to all keys that are prefixed
232-
with 'cache:'. `keys` should not be prefixed with a '~'.
230+
``'*'`` to support wildcard matching. For example, ``'*'`` grants
231+
access to all keys while ``'cache:*'`` grants access to all keys that
232+
are prefixed with ``cache:``.
233+
`keys` should not be prefixed with a ``'~'``.
233234
reset: Indicates whether the user should be fully reset prior to applying
234235
the new ACL. Setting this to `True` will remove all existing
235236
passwords, flags, and privileges from the user and then apply the
@@ -3369,7 +3370,7 @@ def sintercard(
33693370
self, numkeys: int, keys: List[str], limit: int = 0
33703371
) -> Union[Awaitable[int], int]:
33713372
"""
3372-
Return the cardinality of the intersect of multiple sets specified by ``keys`.
3373+
Return the cardinality of the intersect of multiple sets specified by ``keys``.
33733374
33743375
When LIMIT provided (defaults to 0 and means unlimited), if the intersection
33753376
cardinality reaches limit partway through the computation, the algorithm will
@@ -3501,9 +3502,11 @@ class StreamCommands(CommandsProtocol):
35013502
def xack(self, name: KeyT, groupname: GroupT, *ids: StreamIdT) -> ResponseT:
35023503
"""
35033504
Acknowledges the successful processing of one or more messages.
3504-
name: name of the stream.
3505-
groupname: name of the consumer group.
3506-
*ids: message ids to acknowledge.
3505+
3506+
Args:
3507+
name: name of the stream.
3508+
groupname: name of the consumer group.
3509+
*ids: message ids to acknowledge.
35073510
35083511
For more information see https://redis.io/commands/xack
35093512
"""
@@ -3699,8 +3702,10 @@ def xclaim(
36993702
def xdel(self, name: KeyT, *ids: StreamIdT) -> ResponseT:
37003703
"""
37013704
Deletes one or more messages from a stream.
3702-
name: name of the stream.
3703-
*ids: message ids to delete.
3705+
3706+
Args:
3707+
name: name of the stream.
3708+
*ids: message ids to delete.
37043709
37053710
For more information see https://redis.io/commands/xdel
37063711
"""
@@ -4268,7 +4273,7 @@ def zintercard(
42684273
) -> Union[Awaitable[int], int]:
42694274
"""
42704275
Return the cardinality of the intersect of multiple sorted sets
4271-
specified by ``keys`.
4276+
specified by ``keys``.
42724277
When LIMIT provided (defaults to 0 and means unlimited), if the intersection
42734278
cardinality reaches limit partway through the computation, the algorithm will
42744279
exit and yield limit as the cardinality

0 commit comments

Comments
 (0)