diff --git a/redis/commands/json/commands.py b/redis/commands/json/commands.py index 4c2e58369c..b37dc37687 100644 --- a/redis/commands/json/commands.py +++ b/redis/commands/json/commands.py @@ -121,7 +121,9 @@ def objkeys( """ # noqa return self.execute_command("JSON.OBJKEYS", name, str(path), keys=[name]) - def objlen(self, name: str, path: Optional[str] = Path.root_path()) -> int: + def objlen( + self, name: str, path: Optional[str] = Path.root_path() + ) -> List[Optional[int]]: """Return the length of the dictionary JSON value under ``path`` at key ``name``.