Skip to content

Commit 1e60c26

Browse files
committed
fix: formattings for multiline params docstrings
1 parent e007ab4 commit 1e60c26

File tree

11 files changed

+139
-139
lines changed

11 files changed

+139
-139
lines changed

qstash/asyncio/dlq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def list(
3939
Lists all messages currently inside the DLQ.
4040
4141
:param cursor: Optional cursor to start listing DLQ messages from.
42-
:param count: The maximum number of DLQ messages to return.
42+
:param count: The maximum number of DLQ messages to return. \
4343
Default and max is `100`.
4444
:param filter: Filter to use.
4545
"""

qstash/asyncio/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async def list(
2424
Lists all logs that happened, such as message creation or delivery.
2525
2626
:param cursor: Optional cursor to start listing logs from.
27-
:param count: The maximum number of logs to return.
27+
:param count: The maximum number of logs to return. \
2828
Default and max is `1000`.
2929
:param filter: Filter to use.
3030
"""

qstash/asyncio/message.py

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,28 @@ async def publish(
7070
:param method: The HTTP method to use when sending a webhook to your API.
7171
:param headers: Headers to forward along with the message.
7272
:param callback_headers: Headers to forward along with the callback message.
73-
:param failure_callback_headers: Headers to forward along with the failure
73+
:param failure_callback_headers: Headers to forward along with the failure \
7474
callback message.
75-
:param retries: How often should this message be retried in case the destination
75+
:param retries: How often should this message be retried in case the destination \
7676
API is not available.
7777
:param callback: A callback url that will be called after each attempt.
78-
:param failure_callback: A failure callback url that will be called when a delivery
78+
:param failure_callback: A failure callback url that will be called when a delivery \
7979
is failed, that is when all the defined retries are exhausted.
80-
:param delay: Delay the message delivery. The format for the delay string is a
81-
number followed by duration abbreviation, like `10s`. Available durations
82-
are `s` (seconds), `m` (minutes), `h` (hours), and `d` (days). As convenience,
83-
it is also possible to specify the delay as an integer, which will be
80+
:param delay: Delay the message delivery. The format for the delay string is a \
81+
number followed by duration abbreviation, like `10s`. Available durations \
82+
are `s` (seconds), `m` (minutes), `h` (hours), and `d` (days). As convenience, \
83+
it is also possible to specify the delay as an integer, which will be \
8484
interpreted as delay in seconds.
85-
:param not_before: Delay the message until a certain time in the future.
85+
:param not_before: Delay the message until a certain time in the future. \
8686
The format is a unix timestamp in seconds, based on the UTC timezone.
8787
:param deduplication_id: Id to use while deduplicating messages.
88-
:param content_based_deduplication: Automatically deduplicate messages based on
88+
:param content_based_deduplication: Automatically deduplicate messages based on \
8989
their content.
90-
:param timeout: The HTTP timeout value to use while calling the destination URL.
91-
When a timeout is specified, it will be used instead of the maximum timeout
92-
value permitted by the QStash plan. It is useful in scenarios, where a message
90+
:param timeout: The HTTP timeout value to use while calling the destination URL. \
91+
When a timeout is specified, it will be used instead of the maximum timeout \
92+
value permitted by the QStash plan. It is useful in scenarios, where a message \
9393
should be delivered with a shorter timeout.
94-
:param flow_control: Settings for controlling the number of active requests,
94+
:param flow_control: Settings for controlling the number of active requests, \
9595
as well as the rate of requests with the same flow control key.
9696
"""
9797
headers = headers or {}
@@ -163,33 +163,33 @@ async def publish_json(
163163
:param url: Url to send the message to.
164164
:param url_group: Url group to send the message to.
165165
:param api: Api to send the message to.
166-
:param body: The request message body passed to the destination after being
166+
:param body: The request message body passed to the destination after being \
167167
serialized as JSON string.
168168
:param method: The HTTP method to use when sending a webhook to your API.
169169
:param headers: Headers to forward along with the message.
170170
:param callback_headers: Headers to forward along with the callback message.
171-
:param failure_callback_headers: Headers to forward along with the failure
171+
:param failure_callback_headers: Headers to forward along with the failure \
172172
callback message.
173-
:param retries: How often should this message be retried in case the destination
173+
:param retries: How often should this message be retried in case the destination \
174174
API is not available.
175175
:param callback: A callback url that will be called after each attempt.
176-
:param failure_callback: A failure callback url that will be called when a delivery
176+
:param failure_callback: A failure callback url that will be called when a delivery \
177177
is failed, that is when all the defined retries are exhausted.
178-
:param delay: Delay the message delivery. The format for the delay string is a
179-
number followed by duration abbreviation, like `10s`. Available durations
180-
are `s` (seconds), `m` (minutes), `h` (hours), and `d` (days). As convenience,
181-
it is also possible to specify the delay as an integer, which will be
178+
:param delay: Delay the message delivery. The format for the delay string is a \
179+
number followed by duration abbreviation, like `10s`. Available durations \
180+
are `s` (seconds), `m` (minutes), `h` (hours), and `d` (days). As convenience, \
181+
it is also possible to specify the delay as an integer, which will be \
182182
interpreted as delay in seconds.
183-
:param not_before: Delay the message until a certain time in the future.
183+
:param not_before: Delay the message until a certain time in the future. \
184184
The format is a unix timestamp in seconds, based on the UTC timezone.
185185
:param deduplication_id: Id to use while deduplicating messages.
186-
:param content_based_deduplication: Automatically deduplicate messages based on
186+
:param content_based_deduplication: Automatically deduplicate messages based on \
187187
their content.
188-
:param timeout: The HTTP timeout value to use while calling the destination URL.
189-
When a timeout is specified, it will be used instead of the maximum timeout
190-
value permitted by the QStash plan. It is useful in scenarios, where a message
188+
:param timeout: The HTTP timeout value to use while calling the destination URL. \
189+
When a timeout is specified, it will be used instead of the maximum timeout \
190+
value permitted by the QStash plan. It is useful in scenarios, where a message \
191191
should be delivered with a shorter timeout.
192-
:param flow_control: Settings for controlling the number of active requests,
192+
:param flow_control: Settings for controlling the number of active requests, \
193193
as well as the rate of requests with the same flow control key.
194194
"""
195195
return await self.publish(
@@ -253,19 +253,19 @@ async def enqueue(
253253
:param method: The HTTP method to use when sending a webhook to your API.
254254
:param headers: Headers to forward along with the message.
255255
:param callback_headers: Headers to forward along with the callback message.
256-
:param failure_callback_headers: Headers to forward along with the failure
256+
:param failure_callback_headers: Headers to forward along with the failure \
257257
callback message.
258-
:param retries: How often should this message be retried in case the destination
258+
:param retries: How often should this message be retried in case the destination \
259259
API is not available.
260260
:param callback: A callback url that will be called after each attempt.
261-
:param failure_callback: A failure callback url that will be called when a delivery
261+
:param failure_callback: A failure callback url that will be called when a delivery \
262262
is failed, that is when all the defined retries are exhausted.
263263
:param deduplication_id: Id to use while deduplicating messages.
264-
:param content_based_deduplication: Automatically deduplicate messages based on
264+
:param content_based_deduplication: Automatically deduplicate messages based on \
265265
their content.
266-
:param timeout: The HTTP timeout value to use while calling the destination URL.
267-
When a timeout is specified, it will be used instead of the maximum timeout
268-
value permitted by the QStash plan. It is useful in scenarios, where a message
266+
:param timeout: The HTTP timeout value to use while calling the destination URL. \
267+
When a timeout is specified, it will be used instead of the maximum timeout \
268+
value permitted by the QStash plan. It is useful in scenarios, where a message \
269269
should be delivered with a shorter timeout.
270270
"""
271271
headers = headers or {}
@@ -342,19 +342,19 @@ async def enqueue_json(
342342
:param method: The HTTP method to use when sending a webhook to your API.
343343
:param headers: Headers to forward along with the message.
344344
:param callback_headers: Headers to forward along with the callback message.
345-
:param failure_callback_headers: Headers to forward along with the failure
345+
:param failure_callback_headers: Headers to forward along with the failure \
346346
callback message.
347-
:param retries: How often should this message be retried in case the destination
347+
:param retries: How often should this message be retried in case the destination \
348348
API is not available.
349349
:param callback: A callback url that will be called after each attempt.
350-
:param failure_callback: A failure callback url that will be called when a delivery
350+
:param failure_callback: A failure callback url that will be called when a delivery \
351351
is failed, that is when all the defined retries are exhausted.
352352
:param deduplication_id: Id to use while deduplicating messages.
353-
:param content_based_deduplication: Automatically deduplicate messages based on
353+
:param content_based_deduplication: Automatically deduplicate messages based on \
354354
their content.
355-
:param timeout: The HTTP timeout value to use while calling the destination URL.
356-
When a timeout is specified, it will be used instead of the maximum timeout
357-
value permitted by the QStash plan. It is useful in scenarios, where a message
355+
:param timeout: The HTTP timeout value to use while calling the destination URL. \
356+
When a timeout is specified, it will be used instead of the maximum timeout \
357+
value permitted by the QStash plan. It is useful in scenarios, where a message \
358358
should be delivered with a shorter timeout.
359359
"""
360360
return await self.enqueue(

qstash/asyncio/queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def upsert(
2020
2121
:param queue: The name of the queue.
2222
:param parallelism: The number of parallel consumers consuming from the queue.
23-
:param paused: Whether to pause the queue or not. A paused queue will not
23+
:param paused: Whether to pause the queue or not. A paused queue will not \
2424
deliver new messages until it is resumed.
2525
"""
2626
body = prepare_upsert_body(queue, parallelism, paused)

qstash/asyncio/schedule.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,26 @@ async def create(
4747
:param method: The HTTP method to use when sending a webhook to your API.
4848
:param headers: Headers to forward along with the message.
4949
:param callback_headers: Headers to forward along with the callback message.
50-
:param failure_callback_headers: Headers to forward along with the failure
50+
:param failure_callback_headers: Headers to forward along with the failure \
5151
callback message.
52-
:param retries: How often should this message be retried in case the destination
52+
:param retries: How often should this message be retried in case the destination \
5353
API is not available.
5454
:param callback: A callback url that will be called after each attempt.
55-
:param failure_callback: A failure callback url that will be called when a delivery
55+
:param failure_callback: A failure callback url that will be called when a delivery \
5656
is failed, that is when all the defined retries are exhausted.
57-
:param delay: Delay the message delivery. The format for the delay string is a
58-
number followed by duration abbreviation, like `10s`. Available durations
59-
are `s` (seconds), `m` (minutes), `h` (hours), and `d` (days). As convenience,
60-
it is also possible to specify the delay as an integer, which will be
57+
:param delay: Delay the message delivery. The format for the delay string is a \
58+
number followed by duration abbreviation, like `10s`. Available durations \
59+
are `s` (seconds), `m` (minutes), `h` (hours), and `d` (days). As convenience, \
60+
it is also possible to specify the delay as an integer, which will be \
6161
interpreted as delay in seconds.
62-
:param timeout: The HTTP timeout value to use while calling the destination URL.
63-
When a timeout is specified, it will be used instead of the maximum timeout
64-
value permitted by the QStash plan. It is useful in scenarios, where a message
62+
:param timeout: The HTTP timeout value to use while calling the destination URL. \
63+
When a timeout is specified, it will be used instead of the maximum timeout \
64+
value permitted by the QStash plan. It is useful in scenarios, where a message \
6565
should be delivered with a shorter timeout.
66-
:param schedule_id: Schedule id to use. This can be used to update the settings
66+
:param schedule_id: Schedule id to use. This can be used to update the settings \
6767
of an existing schedule.
68-
:param queue: Name of the queue which the scheduled messages will be enqueued.
69-
:param flow_control: Settings for controlling the number of active requests,
68+
:param queue: Name of the queue which the scheduled messages will be enqueued.
69+
:param flow_control: Settings for controlling the number of active requests, \
7070
as well as the rate of requests with the same flow control key.
7171
"""
7272
req_headers = prepare_schedule_headers(
@@ -122,31 +122,31 @@ async def create_json(
122122
123123
:param destination: The destination url or url group.
124124
:param cron: The cron expression to use to schedule the messages.
125-
:param body: The request message body passed to the destination after being
125+
:param body: The request message body passed to the destination after being \
126126
serialized as JSON string.
127127
:param method: The HTTP method to use when sending a webhook to your API.
128128
:param headers: Headers to forward along with the message.
129129
:param callback_headers: Headers to forward along with the callback message.
130-
:param failure_callback_headers: Headers to forward along with the failure
130+
:param failure_callback_headers: Headers to forward along with the failure \
131131
callback message.
132-
:param retries: How often should this message be retried in case the destination
132+
:param retries: How often should this message be retried in case the destination \
133133
API is not available.
134134
:param callback: A callback url that will be called after each attempt.
135-
:param failure_callback: A failure callback url that will be called when a delivery
135+
:param failure_callback: A failure callback url that will be called when a delivery \
136136
is failed, that is when all the defined retries are exhausted.
137-
:param delay: Delay the message delivery. The format for the delay string is a
138-
number followed by duration abbreviation, like `10s`. Available durations
139-
are `s` (seconds), `m` (minutes), `h` (hours), and `d` (days). As convenience,
140-
it is also possible to specify the delay as an integer, which will be
137+
:param delay: Delay the message delivery. The format for the delay string is a \
138+
number followed by duration abbreviation, like `10s`. Available durations \
139+
are `s` (seconds), `m` (minutes), `h` (hours), and `d` (days). As convenience, \
140+
it is also possible to specify the delay as an integer, which will be \
141141
interpreted as delay in seconds.
142-
:param timeout: The HTTP timeout value to use while calling the destination URL.
143-
When a timeout is specified, it will be used instead of the maximum timeout
144-
value permitted by the QStash plan. It is useful in scenarios, where a message
142+
:param timeout: The HTTP timeout value to use while calling the destination URL. \
143+
When a timeout is specified, it will be used instead of the maximum timeout \
144+
value permitted by the QStash plan. It is useful in scenarios, where a message \
145145
should be delivered with a shorter timeout.
146-
:param schedule_id: Schedule id to use. This can be used to update the settings
146+
:param schedule_id: Schedule id to use. This can be used to update the settings \
147147
of an existing schedule.
148148
:param queue: Name of the queue which the scheduled messages will be enqueued.
149-
:param flow_control: Settings for controlling the number of active requests,
149+
:param flow_control: Settings for controlling the number of active requests, \
150150
as well as the rate of requests with the same flow control key.
151151
"""
152152
return await self.create(

qstash/dlq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def list(
177177
Lists all messages currently inside the DLQ.
178178
179179
:param cursor: Optional cursor to start listing DLQ messages from.
180-
:param count: The maximum number of DLQ messages to return.
180+
:param count: The maximum number of DLQ messages to return. \
181181
Default and max is `100`.
182182
:param filter: Filter to use.
183183
"""

qstash/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def list(
252252
Lists all logs that happened, such as message creation or delivery.
253253
254254
:param cursor: Optional cursor to start listing logs from.
255-
:param count: The maximum number of logs to return.
255+
:param count: The maximum number of logs to return. \
256256
Default and max is `1000`.
257257
:param filter: Filter to use.
258258
"""

0 commit comments

Comments
 (0)