summaryrefslogtreecommitdiff
path: root/redis/commands/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r--redis/commands/core.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py
index 28dab81..e2cabb8 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -3357,10 +3357,15 @@ class SetCommands(CommandsProtocol):
def smismember(
self, name: str, values: List, *args: List
- ) -> Union[Awaitable[List[bool]], List[bool]]:
+ ) -> Union[
+ Awaitable[List[Union[Literal[0], Literal[1]]]],
+ List[Union[Literal[0], Literal[1]]],
+ ]:
"""
Return whether each value in ``values`` is a member of the set ``name``
- as a list of ``bool`` in the order of ``values``
+ as a list of ``int`` in the order of ``values``:
+ - 1 if the value is a member of the set.
+ - 0 if the value is not a member of the set or if key does not exist.
For more information see https://redis.io/commands/smismember
"""