diff --git a/valkey/commands/core.py b/valkey/commands/core.py index 9fa9ac2b..b1d3e8d9 100644 --- a/valkey/commands/core.py +++ b/valkey/commands/core.py @@ -2153,7 +2153,7 @@ def pttl(self, name: KeyT) -> ResponseT: def hrandfield( self, key: str, count: int = None, withvalues: bool = False - ) -> ResponseT: + ) -> Union[bytes, List[bytes], None]: """ Return a random field from the hash value stored at key.