diff --git a/redis/commands/json/commands.py b/redis/commands/json/commands.py index a16f07c150..0e46e40f47 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)) - 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``.