Skip to content

Commit 5e258a1

Browse files
authored
Add missing Union type in method StreamCommands.xclaim() (#2553)
`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.
1 parent 18560b4 commit 5e258a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3551,7 +3551,7 @@ def xclaim(
35513551
groupname: GroupT,
35523552
consumername: ConsumerT,
35533553
min_idle_time: int,
3554-
message_ids: [List[StreamIdT], Tuple[StreamIdT]],
3554+
message_ids: Union[List[StreamIdT], Tuple[StreamIdT]],
35553555
idle: Union[int, None] = None,
35563556
time: Union[int, None] = None,
35573557
retrycount: Union[int, None] = None,

0 commit comments

Comments
 (0)