diff --git a/python/python/glide/async_commands/core.py b/python/python/glide/async_commands/core.py index 5991e51338..3af69406e0 100644 --- a/python/python/glide/async_commands/core.py +++ b/python/python/glide/async_commands/core.py @@ -879,8 +879,6 @@ async def hrandfield_count(self, key: str, count: int) -> List[str]: await self._execute_command(RequestType.HRandField, [key, str(count)]), ) - WITH_VALUES: str = "WITHVALUES" - async def hrandfield_withvalues(self, key: str, count: int) -> List[List[str]]: """ Retrieves up to `count` random field names along with their values from the hash value stored at `key`. @@ -905,7 +903,7 @@ async def hrandfield_withvalues(self, key: str, count: int) -> List[List[str]]: return cast( List[List[str]], await self._execute_command( - RequestType.HRandField, [key, str(count), self.WITH_VALUES] + RequestType.HRandField, [key, str(count), "WITHVALUES"] ), ) diff --git a/python/python/glide/async_commands/transaction.py b/python/python/glide/async_commands/transaction.py index 1772fd275a..1bc6b37ede 100644 --- a/python/python/glide/async_commands/transaction.py +++ b/python/python/glide/async_commands/transaction.py @@ -5,7 +5,6 @@ from glide.async_commands.core import ( ConditionalChange, - CoreCommands, ExpireOptions, ExpirySet, GeospatialData, @@ -660,7 +659,7 @@ def hrandfield_withvalues(self: TTransaction, key: str, count: int) -> TTransact If the hash does not exist or is empty, the response will be an empty list. """ return self.append_command( - RequestType.HRandField, [key, str(count), CoreCommands.WITH_VALUES] + RequestType.HRandField, [key, str(count), "WITHVALUES"] ) def lpush(self: TTransaction, key: str, elements: List[str]) -> TTransaction: