Skip to content

Commit 339d180

Browse files
committed
commit message: fix(redis-client): normalize optional parameter annotations and correct arrtrim return type
body: replaced all Union[T, None] = None and bare T = None with Optional[T] = None; changed arrtrim return annotation to Optional[int]
1 parent fc88d6f commit 339d180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/commands/json/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def arrpop(
8989

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

0 commit comments

Comments
 (0)