diff options
author | Agustin Marquez <agusdmb@gmail.com> | 2022-07-31 12:27:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 13:27:16 +0300 |
commit | fee83ae749cbb77700899545270c514a198c14da (patch) | |
tree | e9ea1dafc018380470f698f5d2dd8af86d115b80 /redis/commands/core.py | |
parent | c94821c11e74d360ae3ccdcf9581cfe24e120a07 (diff) | |
download | redis-py-fee83ae749cbb77700899545270c514a198c14da.tar.gz |
Fix typing on smembers command (#2312)
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r-- | redis/commands/core.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py index 455c3f4..4243679 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -17,6 +17,7 @@ from typing import ( Mapping, Optional, Sequence, + Set, Tuple, Union, ) @@ -3257,7 +3258,7 @@ class SetCommands(CommandsProtocol): """ return self.execute_command("SISMEMBER", name, value) - def smembers(self, name: str) -> Union[Awaitable[list], list]: + def smembers(self, name: str) -> Union[Awaitable[Set], Set]: """ Return all members of the set ``name`` |