Skip to content

Commit e4ffd18

Browse files
committed
Docs: Resolve 'Unexpected indentation' warnings
1 parent fd0b0d3 commit e4ffd18

File tree

2 files changed

+61
-58
lines changed

2 files changed

+61
-58
lines changed

redis/commands/core.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6415,9 +6415,12 @@ def function_list(
64156415
) -> Union[Awaitable[List], List]:
64166416
"""
64176417
Return information about the functions and libraries.
6418-
:param library: pecify a pattern for matching library names
6419-
:param withcode: cause the server to include the libraries source
6420-
implementation in the reply
6418+
6419+
Args:
6420+
6421+
library: specify a pattern for matching library names
6422+
withcode: cause the server to include the libraries source implementation
6423+
in the reply
64216424
"""
64226425
args = ["LIBRARYNAME", library]
64236426
if withcode:

redis/commands/timeseries/commands.py

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ def create(
6060
duplicate_policy:
6161
Policy for handling multiple samples with identical timestamps. Can be
6262
one of:
63-
- 'block': An error will occur and the new value will be ignored.
64-
- 'first': Ignore the new value.
65-
- 'last': Override with the latest value.
66-
- 'min': Only override if the value is lower than the existing
67-
value.
68-
- 'max': Only override if the value is higher than the existing
69-
value.
70-
- 'sum': If a previous sample exists, add the new sample to it so
71-
that the updated value is equal to (previous + new). If no
72-
previous sample exists, set the updated value equal to the new
73-
value.
63+
64+
- 'block': An error will occur and the new value will be ignored.
65+
- 'first': Ignore the new value.
66+
- 'last': Override with the latest value.
67+
- 'min': Only override if the value is lower than the existing value.
68+
- 'max': Only override if the value is higher than the existing value.
69+
- 'sum': If a previous sample exists, add the new sample to it so
70+
that the updated value is equal to (previous + new). If no
71+
previous sample exists, set the updated value equal to the new
72+
value.
73+
7474
ignore_max_time_diff:
7575
A non-negative integer value, in milliseconds, that sets an ignore
7676
threshold for added timestamps. If the difference between the last
@@ -130,17 +130,17 @@ def alter(
130130
duplicate_policy:
131131
Policy for handling multiple samples with identical timestamps. Can be
132132
one of:
133-
- 'block': An error will occur and the new value will be ignored.
134-
- 'first': Ignore the new value.
135-
- 'last': Override with the latest value.
136-
- 'min': Only override if the value is lower than the existing
137-
value.
138-
- 'max': Only override if the value is higher than the existing
139-
value.
140-
- 'sum': If a previous sample exists, add the new sample to it so
141-
that the updated value is equal to (previous + new). If no
142-
previous sample exists, set the updated value equal to the new
143-
value.
133+
134+
- 'block': An error will occur and the new value will be ignored.
135+
- 'first': Ignore the new value.
136+
- 'last': Override with the latest value.
137+
- 'min': Only override if the value is lower than the existing value.
138+
- 'max': Only override if the value is higher than the existing value.
139+
- 'sum': If a previous sample exists, add the new sample to it so
140+
that the updated value is equal to (previous + new). If no
141+
previous sample exists, set the updated value equal to the new
142+
value.
143+
144144
ignore_max_time_diff:
145145
A non-negative integer value, in milliseconds, that sets an ignore
146146
threshold for added timestamps. If the difference between the last
@@ -210,17 +210,17 @@ def add(
210210
duplicate_policy:
211211
Policy for handling multiple samples with identical timestamps. Can be
212212
one of:
213-
- 'block': An error will occur and the new value will be ignored.
214-
- 'first': Ignore the new value.
215-
- 'last': Override with the latest value.
216-
- 'min': Only override if the value is lower than the existing
217-
value.
218-
- 'max': Only override if the value is higher than the existing
219-
value.
220-
- 'sum': If a previous sample exists, add the new sample to it so
221-
that the updated value is equal to (previous + new). If no
222-
previous sample exists, set the updated value equal to the new
223-
value.
213+
214+
- 'block': An error will occur and the new value will be ignored.
215+
- 'first': Ignore the new value.
216+
- 'last': Override with the latest value.
217+
- 'min': Only override if the value is lower than the existing value.
218+
- 'max': Only override if the value is higher than the existing value.
219+
- 'sum': If a previous sample exists, add the new sample to it so
220+
that the updated value is equal to (previous + new). If no
221+
previous sample exists, set the updated value equal to the new
222+
value.
223+
224224
ignore_max_time_diff:
225225
A non-negative integer value, in milliseconds, that sets an ignore
226226
threshold for added timestamps. If the difference between the last
@@ -331,17 +331,17 @@ def incrby(
331331
duplicate_policy:
332332
Policy for handling multiple samples with identical timestamps. Can be
333333
one of:
334-
- 'block': An error will occur and the new value will be ignored.
335-
- 'first': Ignore the new value.
336-
- 'last': Override with the latest value.
337-
- 'min': Only override if the value is lower than the existing
338-
value.
339-
- 'max': Only override if the value is higher than the existing
340-
value.
341-
- 'sum': If a previous sample exists, add the new sample to it so
342-
that the updated value is equal to (previous + new). If no
343-
previous sample exists, set the updated value equal to the new
344-
value.
334+
335+
- 'block': An error will occur and the new value will be ignored.
336+
- 'first': Ignore the new value.
337+
- 'last': Override with the latest value.
338+
- 'min': Only override if the value is lower than the existing value.
339+
- 'max': Only override if the value is higher than the existing value.
340+
- 'sum': If a previous sample exists, add the new sample to it so
341+
that the updated value is equal to (previous + new). If no
342+
previous sample exists, set the updated value equal to the new
343+
value.
344+
345345
ignore_max_time_diff:
346346
A non-negative integer value, in milliseconds, that sets an ignore
347347
threshold for added timestamps. If the difference between the last
@@ -423,17 +423,17 @@ def decrby(
423423
duplicate_policy:
424424
Policy for handling multiple samples with identical timestamps. Can be
425425
one of:
426-
- 'block': An error will occur and the new value will be ignored.
427-
- 'first': Ignore the new value.
428-
- 'last': Override with the latest value.
429-
- 'min': Only override if the value is lower than the existing
430-
value.
431-
- 'max': Only override if the value is higher than the existing
432-
value.
433-
- 'sum': If a previous sample exists, add the new sample to it so
434-
that the updated value is equal to (previous + new). If no
435-
previous sample exists, set the updated value equal to the new
436-
value.
426+
427+
- 'block': An error will occur and the new value will be ignored.
428+
- 'first': Ignore the new value.
429+
- 'last': Override with the latest value.
430+
- 'min': Only override if the value is lower than the existing value.
431+
- 'max': Only override if the value is higher than the existing value.
432+
- 'sum': If a previous sample exists, add the new sample to it so
433+
that the updated value is equal to (previous + new). If no
434+
previous sample exists, set the updated value equal to the new
435+
value.
436+
437437
ignore_max_time_diff:
438438
A non-negative integer value, in milliseconds, that sets an ignore
439439
threshold for added timestamps. If the difference between the last

0 commit comments

Comments
 (0)