Skip to content

Commit d5bb6bf

Browse files
authored
Merge pull request #155 from amirreza8002/hrandtype
fixed type hint of hrandfield method
2 parents 1d0ac55 + 1fc6f9b commit d5bb6bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

valkey/commands/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2153,7 +2153,7 @@ def pttl(self, name: KeyT) -> ResponseT:
21532153

21542154
def hrandfield(
21552155
self, key: str, count: int = None, withvalues: bool = False
2156-
) -> ResponseT:
2156+
) -> Union[bytes, List[bytes], None]:
21572157
"""
21582158
Return a random field from the hash value stored at key.
21592159

0 commit comments

Comments
 (0)