Skip to content

Commit b76d9e4

Browse files
author
Christine
authored
redis: add acl stubs (#4690)
1 parent 6ff5b88 commit b76d9e4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

third_party/2and3/redis/client.pyi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,28 @@ class Redis(object):
8181
def pubsub(self, shard_hint: Any = ..., ignore_subscribe_messages: bool = ...) -> PubSub: ...
8282
def execute_command(self, *args, **options): ...
8383
def parse_response(self, connection, command_name, **options): ...
84+
def acl_cat(self, category: Optional[Text] = ...) -> List[str]: ...
85+
def acl_deluser(self, username: Text) -> int: ...
86+
def acl_genpass(self) -> Text: ...
87+
def acl_getuser(self, username: Text) -> Optional[Any]: ...
88+
def acl_list(self) -> List[Text]: ...
89+
def acl_load(self) -> bool: ...
90+
def acl_setuser(
91+
self,
92+
username: Text = ...,
93+
enabled: bool = ...,
94+
nopass: bool = ...,
95+
passwords: Optional[Sequence[Text]] = ...,
96+
hashed_passwords: Optional[Sequence[Text]] = ...,
97+
categories: Optional[Sequence[Text]] = ...,
98+
commands: Optional[Sequence[Text]] = ...,
99+
keys: Optional[Sequence[Text]] = ...,
100+
reset: bool = ...,
101+
reset_keys: bool = ...,
102+
reset_passwords: bool = ...,
103+
) -> bool: ...
104+
def acl_users(self) -> List[Text]: ...
105+
def acl_whoami(self) -> Text: ...
84106
def bgrewriteaof(self): ...
85107
def bgsave(self): ...
86108
def client_id(self) -> int: ...

0 commit comments

Comments
 (0)