From 5e258a107e4d44522a9222b4c7e8938dbe4bc43e Mon Sep 17 00:00:00 2001 From: David Pacsuta <34983281+ant1fact@users.noreply.github.com> Date: Sun, 22 Jan 2023 19:41:38 +0100 Subject: 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. --- redis/commands/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/commands/core.py b/redis/commands/core.py index 3278c57..b07f12d 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -3551,7 +3551,7 @@ class StreamCommands(CommandsProtocol): 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, -- cgit v1.2.1