Skip to content

Commit fc7d472

Browse files
authored
Redis: Add missing types for id in xadd (#10403)
1 parent 702226e commit fc7d472

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stubs/redis/redis/asyncio/client.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ class Pipeline(Redis[_StrType], Generic[_StrType]):
588588
self,
589589
name,
590590
fields,
591-
id: str = "*",
591+
id: str | int | bytes | memoryview = "*",
592592
maxlen=None,
593593
approximate: bool = True,
594594
nomkstream: bool = False,

stubs/redis/redis/commands/core.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ class StreamCommands:
864864
self,
865865
name,
866866
fields,
867-
id: str = "*",
867+
id: str | int | bytes | memoryview = "*",
868868
maxlen=None,
869869
approximate: bool = True,
870870
nomkstream: bool = False,
@@ -930,7 +930,7 @@ class AsyncStreamCommands:
930930
self,
931931
name,
932932
fields,
933-
id: str = "*",
933+
id: str | int | bytes | memoryview = "*",
934934
maxlen=None,
935935
approximate: bool = True,
936936
nomkstream: bool = False,

0 commit comments

Comments
 (0)