From 1fc6f9b7257ddb489c70ed4b70d7a3ad71b2f2cb Mon Sep 17 00:00:00 2001 From: amirreza Date: Mon, 16 Dec 2024 15:11:30 +0330 Subject: [PATCH] fixed type hint of hrandfield method Signed-off-by: amirreza --- valkey/commands/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.