From 5042bf7ff4f0c6302d2d40e0e6104747c271d2b0 Mon Sep 17 00:00:00 2001 From: trkwyk Date: Wed, 27 Sep 2023 21:43:37 +0800 Subject: [PATCH] Fix objlen type hint --- redis/commands/json/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/commands/json/commands.py b/redis/commands/json/commands.py index 0f92e0d6c9..6cfe5844c3 100644 --- a/redis/commands/json/commands.py +++ b/redis/commands/json/commands.py @@ -121,7 +121,7 @@ def objkeys( """ # noqa return self.execute_command("JSON.OBJKEYS", name, str(path)) - def objlen(self, name: str, path: Optional[str] = Path.root_path()) -> int: + def objlen(self, name: str, path: Optional[str] = Path.root_path()) -> List[Union[int, None]]: """Return the length of the dictionary JSON value under ``path`` at key ``name``.