From 869c83431b9c73f630f895bb1293434e14ebec15 Mon Sep 17 00:00:00 2001 From: amirreza Date: Mon, 16 Dec 2024 11:49:02 +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..6d3b02e1 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: + ) -> bytes | list[bytes] | None: """ Return a random field from the hash value stored at key.