From dee949e617bc2a50fb6cb2cf468100e20d2f4714 Mon Sep 17 00:00:00 2001 From: ArtemIsmagilov Date: Sun, 29 Sep 2024 23:05:15 +0400 Subject: [PATCH] sort methods `acl_deluser` and `acl_dryrun` by alphabetically, checked doc Signed-off-by: ArtemIsmagilov --- valkey/commands/core.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/valkey/commands/core.py b/valkey/commands/core.py index 014cb01d..75f45eec 100644 --- a/valkey/commands/core.py +++ b/valkey/commands/core.py @@ -69,14 +69,6 @@ def acl_cat(self, category: Union[str, None] = None, **kwargs) -> ResponseT: pieces: list[EncodableT] = [category] if category else [] return self.execute_command("ACL CAT", *pieces, **kwargs) - def acl_dryrun(self, username, *args, **kwargs): - """ - Simulate the execution of a given command by a given ``username``. - - For more information see https://valkey.io/commands/acl-dryrun - """ - return self.execute_command("ACL DRYRUN", username, *args, **kwargs) - def acl_deluser(self, *username: str, **kwargs) -> ResponseT: """ Delete the ACL for the specified ``username``\\s @@ -85,6 +77,14 @@ def acl_deluser(self, *username: str, **kwargs) -> ResponseT: """ return self.execute_command("ACL DELUSER", *username, **kwargs) + def acl_dryrun(self, username, *args, **kwargs): + """ + Simulate the execution of a given command by a given ``username``. + + For more information see https://valkey.io/commands/acl-dryrun + """ + return self.execute_command("ACL DRYRUN", username, *args, **kwargs) + def acl_genpass(self, bits: Union[int, None] = None, **kwargs) -> ResponseT: """Generate a random password value. If ``bits`` is supplied then use this number of bits, rounded to