Skip to content

Commit

Permalink
Fix objlen type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
trkwyk committed Sep 27, 2023
1 parent cc4bc1a commit 5042bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/commands/json/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down

0 comments on commit 5042bf7

Please sign in to comment.