Skip to content

smismember command returns incorrect type #2616

Closed
@etripier

Description

@etripier

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions