Skip to content

Commit e9b7ba3

Browse files
author
Mikhail Koviazin
authored
Merge pull request #103 from ArtemIsmagilov/alphabetical-methods-by-doc
sort methods `ACL DELUSER` and `ACL DRYRUN` by alphabetically, checked doc
2 parents df59e4c + dee949e commit e9b7ba3

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)