diff --git a/stubs/redis/redis/commands/core.pyi b/stubs/redis/redis/commands/core.pyi index 9f96fe591..437e93bee 100644 --- a/stubs/redis/redis/commands/core.pyi +++ b/stubs/redis/redis/commands/core.pyi @@ -862,8 +862,8 @@ class StreamCommands: def xack(self, name, groupname, *ids): ... def xadd( self, - name, - fields, + name: KeyT, + fields: Mapping[bytes | memoryview | str | float, bytes | memoryview | str | float], id: str | int | bytes | memoryview = "*", maxlen=None, approximate: bool = True, @@ -894,7 +894,7 @@ class StreamCommands: force=False, justid=False, ): ... - def xdel(self, name, *ids): ... + def xdel(self, name: KeyT, *ids: str | int | bytes | memoryview): ... def xgroup_create(self, name, groupname, id: str = "$", mkstream: bool = False, entries_read: int | None = None): ... def xgroup_delconsumer(self, name, groupname, consumername): ... def xgroup_destroy(self, name, groupname): ... @@ -928,8 +928,8 @@ class AsyncStreamCommands: async def xack(self, name, groupname, *ids): ... async def xadd( self, - name, - fields, + name: KeyT, + fields: Mapping[bytes | memoryview | str | float, bytes | memoryview | str | float], id: str | int | bytes | memoryview = "*", maxlen=None, approximate: bool = True, @@ -960,7 +960,7 @@ class AsyncStreamCommands: force=False, justid=False, ): ... - async def xdel(self, name, *ids): ... + async def xdel(self, name: KeyT, *ids: str | int | bytes | memoryview): ... async def xgroup_create(self, name, groupname, id: str = "$", mkstream: bool = False, entries_read: int | None = None): ... async def xgroup_delconsumer(self, name, groupname, consumername): ... async def xgroup_destroy(self, name, groupname): ...