Skip to content

Commit 7ee3bf2

Browse files
committed
commit message: fix(redis-client): fix broken types
1 parent 6f3127f commit 7ee3bf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redis/commands/json/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def arrpop(
7979
name: str,
8080
path: Optional[str] = Path.root_path(),
8181
index: Optional[int] = -1,
82-
) -> List[Union[str, None]]:
82+
) -> List[Optional[str]]:
8383
"""Pop the element at ``index`` in the array JSON value under
8484
``path`` at key ``name``.
8585
@@ -89,7 +89,7 @@ def arrpop(
8989

9090
def arrtrim(
9191
self, name: str, path: str, start: int, stop: int
92-
) -> Optional[int]:
92+
) -> List[Optional[int]]:
9393
"""Trim the array JSON value under ``path`` at key ``name`` to the
9494
inclusive range given by ``start`` and ``stop``.
9595
@@ -113,7 +113,7 @@ def resp(self, name: str, path: Optional[str] = Path.root_path()) -> List:
113113

114114
def objkeys(
115115
self, name: str, path: Optional[str] = Path.root_path()
116-
) -> List[Union[List[str], None]]:
116+
) -> List[Optional[List[str]]]:
117117
"""Return the key names in the dictionary JSON value under ``path`` at
118118
key ``name``.
119119

0 commit comments

Comments
 (0)