Commit 436ad60
Change type hints with possible None args or return types to be annotated with Optional - includes commands in core.py and json commands (redis#3610)
* fix(redis-client): change `zrange` num parameter type to `Optional[int]`
* fix(redis-client): normalize optional parameter annotations
Replace all occurrences of Union[T, None] = None and bare T = None
with Optional[T] = None in zrange, _zrange, arrtrim, and other methods
so that type checkers no longer report errors.
* 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]
* fix(redis-client): replace Optional[None] with Optional[int] for numeric parameters1 parent 18d3b32 commit 436ad60
3 files changed
+113
-112
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
| 1149 | + | |
0 commit comments