Skip to content

Commit

Permalink
Redis: Add missing types for id in xadd (#10403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kontrolix authored Jul 4, 2023
1 parent 702226e commit fc7d472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stubs/redis/redis/asyncio/client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions stubs/redis/redis/commands/core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ class StreamCommands:
self,
name,
fields,
id: str = "*",
id: str | int | bytes | memoryview = "*",
maxlen=None,
approximate: bool = True,
nomkstream: bool = False,
Expand Down Expand Up @@ -930,7 +930,7 @@ class AsyncStreamCommands:
self,
name,
fields,
id: str = "*",
id: str | int | bytes | memoryview = "*",
maxlen=None,
approximate: bool = True,
nomkstream: bool = False,
Expand Down

0 comments on commit fc7d472

Please sign in to comment.