Skip to content

Commit a32b513

Browse files
trkwykdvora-h
andcommitted
Fix objlen type hint (#2966)
* Fix objlen type hint * Update redis/commands/json/commands.py Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> * linters --------- Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
1 parent 33450d9 commit a32b513

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redis/commands/json/commands.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ def objkeys(
121121
""" # noqa
122122
return self.execute_command("JSON.OBJKEYS", name, str(path))
123123

124-
def objlen(self, name: str, path: Optional[str] = Path.root_path()) -> int:
124+
def objlen(
125+
self, name: str, path: Optional[str] = Path.root_path()
126+
) -> List[Optional[int]]:
125127
"""Return the length of the dictionary JSON value under ``path`` at key
126128
``name``.
127129

0 commit comments

Comments
 (0)