From fc7d4722eaa54803926cee5730e1f784979c0531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damien=20Coupp=C3=A9?= Date: Tue, 4 Jul 2023 14:03:02 +0200 Subject: [PATCH] Redis: Add missing types for id in xadd (#10403) --- stubs/redis/redis/asyncio/client.pyi | 2 +- stubs/redis/redis/commands/core.pyi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stubs/redis/redis/asyncio/client.pyi b/stubs/redis/redis/asyncio/client.pyi index 2ec11d7b5..2c8b4235a 100644 --- a/stubs/redis/redis/asyncio/client.pyi +++ b/stubs/redis/redis/asyncio/client.pyi @@ -588,7 +588,7 @@ class Pipeline(Redis[_StrType], Generic[_StrType]): self, name, fields, - id: str = "*", + id: str | int | bytes | memoryview = "*", maxlen=None, approximate: bool = True, nomkstream: bool = False, diff --git a/stubs/redis/redis/commands/core.pyi b/stubs/redis/redis/commands/core.pyi index 6aaf9d3a7..9f96fe591 100644 --- a/stubs/redis/redis/commands/core.pyi +++ b/stubs/redis/redis/commands/core.pyi @@ -864,7 +864,7 @@ class StreamCommands: self, name, fields, - id: str = "*", + id: str | int | bytes | memoryview = "*", maxlen=None, approximate: bool = True, nomkstream: bool = False, @@ -930,7 +930,7 @@ class AsyncStreamCommands: self, name, fields, - id: str = "*", + id: str | int | bytes | memoryview = "*", maxlen=None, approximate: bool = True, nomkstream: bool = False,