Skip to content

Commit

Permalink
Add missing Union type in method StreamCommands.xclaim() (#2553)
Browse files Browse the repository at this point in the history
`Union` was missing in front of `[List[StreamIdT], Tuple[StreamIdT]]` and VSCode was producing an error because of it.
After adding `Union` the type annotation is correctly identified by VSCode.
  • Loading branch information
ant1fact authored Jan 22, 2023
1 parent 18560b4 commit 5e258a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3551,7 +3551,7 @@ def xclaim(
groupname: GroupT,
consumername: ConsumerT,
min_idle_time: int,
message_ids: [List[StreamIdT], Tuple[StreamIdT]],
message_ids: Union[List[StreamIdT], Tuple[StreamIdT]],
idle: Union[int, None] = None,
time: Union[int, None] = None,
retrycount: Union[int, None] = None,
Expand Down

0 comments on commit 5e258a1

Please sign in to comment.