diff options
author | David Pacsuta <34983281+ant1fact@users.noreply.github.com> | 2023-01-22 19:41:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 20:41:38 +0200 |
commit | 5e258a107e4d44522a9222b4c7e8938dbe4bc43e (patch) | |
tree | fce1dbd04cecf9f503044aab410b972962b40822 | |
parent | 18560b43ed759f4ace7ac16f4a3dd53ab2841969 (diff) | |
download | redis-py-5e258a107e4d44522a9222b4c7e8938dbe4bc43e.tar.gz |
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.
-rw-r--r-- | redis/commands/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |