Redis: Add missing types for id in xadd (#10403)

This commit is contained in:
Damien Couppé
2023-07-04 14:03:02 +02:00
committed by GitHub
parent 702226e1fd
commit fc7d4722ea
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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,