Skip to content

Commit 0d8c3d1

Browse files
ArtemIsmagilovRafiot
authored andcommitted
sort methods acl_deluser and acl_dryrun by alphabetically, checked doc
Signed-off-by: ArtemIsmagilov <artem.ismagilov.2000@mail.ru> Signed-off-by: Raphaël Vinot <raphael@vinot.info>
1 parent ad7b5ec commit 0d8c3d1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

valkey/commands/core.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@ def acl_cat(self, category: Union[str, None] = None, **kwargs) -> ResponseT:
6969
pieces: list[EncodableT] = [category] if category else []
7070
return self.execute_command("ACL CAT", *pieces, **kwargs)
7171

72-
def acl_dryrun(self, username, *args, **kwargs):
73-
"""
74-
Simulate the execution of a given command by a given ``username``.
75-
76-
For more information see https://valkey.io/commands/acl-dryrun
77-
"""
78-
return self.execute_command("ACL DRYRUN", username, *args, **kwargs)
79-
8072
def acl_deluser(self, *username: str, **kwargs) -> ResponseT:
8173
"""
8274
Delete the ACL for the specified ``username``\\s
@@ -85,6 +77,14 @@ def acl_deluser(self, *username: str, **kwargs) -> ResponseT:
8577
"""
8678
return self.execute_command("ACL DELUSER", *username, **kwargs)
8779

80+
def acl_dryrun(self, username, *args, **kwargs):
81+
"""
82+
Simulate the execution of a given command by a given ``username``.
83+
84+
For more information see https://valkey.io/commands/acl-dryrun
85+
"""
86+
return self.execute_command("ACL DRYRUN", username, *args, **kwargs)
87+
8888
def acl_genpass(self, bits: Union[int, None] = None, **kwargs) -> ResponseT:
8989
"""Generate a random password value.
9090
If ``bits`` is supplied then use this number of bits, rounded to

0 commit comments

Comments
 (0)