Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smismember command returns incorrect type #2616

Closed
etripier opened this issue Mar 14, 2023 · 2 comments
Closed

smismember command returns incorrect type #2616

etripier opened this issue Mar 14, 2023 · 2 comments

Comments

@etripier
Copy link

etripier commented Mar 14, 2023

Version:

  • redis: 7.0.8
  • redis-py: 4.3.4

Platform:

Any platform.

Description:

The smismember command is incorrectly typed and tested as returning list[bool] instead of list[Literal[0] | Literal[1]]. See https://redis.io/commands/smismember/.

client = redis.Redis(...)
result = client.smismember('key', ['1', '2'])
result == [0, 0]
@ryin1
Copy link
Contributor

ryin1 commented Mar 14, 2023

#2617

@dvora-h
Copy link
Collaborator

dvora-h commented Mar 16, 2023

Fixed in #2617

@dvora-h dvora-h closed this as completed Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants