summaryrefslogtreecommitdiff
path: root/redis/commands/core.py
diff options
context:
space:
mode:
authorAgustin Marquez <agusdmb@gmail.com>2022-07-31 12:27:16 +0200
committerGitHub <noreply@github.com>2022-07-31 13:27:16 +0300
commitfee83ae749cbb77700899545270c514a198c14da (patch)
treee9ea1dafc018380470f698f5d2dd8af86d115b80 /redis/commands/core.py
parentc94821c11e74d360ae3ccdcf9581cfe24e120a07 (diff)
downloadredis-py-fee83ae749cbb77700899545270c514a198c14da.tar.gz
Fix typing on smembers command (#2312)
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r--redis/commands/core.py3
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``