Skip to content

Commit 28850ba

Browse files
committed
use async context for retry doc string
1 parent 54c5877 commit 28850ba

7 files changed

Lines changed: 12 additions & 21 deletions

File tree

modules/openapi-generator/src/main/resources/python/configuration.mustache

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,12 @@ class Configuration:
188188
values before.
189189
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
190190
in PEM format.
191-
:param retries: Retry config; type depends on library:
192-
* urllib3: int | urllib3.util.retry.Retry
193-
* asyncio: int | aiohttp_retry.RetryOptionsBase
191+
{{#async}}
192+
:param retries: int | aiohttp_retry.RetryOptionsBase - Retry configuration.
193+
{{/async}}
194+
{{^async}}
195+
:param retries: int | urllib3.util.retry.Retry - Retry configuration.
196+
{{/async}}
194197
:param ca_cert_data: verify the peer using concatenated CA certificate data
195198
in PEM (str) or DER (bytes) format.
196199
:param cert_file: the path to a client certificate file, for mTLS.

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ class Configuration:
162162
values before.
163163
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
164164
in PEM format.
165-
:param retries: Retry config; type depends on library:
166-
* urllib3: int | urllib3.util.retry.Retry
167-
* asyncio: int | aiohttp_retry.RetryOptionsBase
165+
:param retries: int | urllib3.util.retry.Retry - Retry configuration.
168166
:param ca_cert_data: verify the peer using concatenated CA certificate data
169167
in PEM (str) or DER (bytes) format.
170168
:param cert_file: the path to a client certificate file, for mTLS.

samples/client/echo_api/python/openapi_client/configuration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ class Configuration:
162162
values before.
163163
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
164164
in PEM format.
165-
:param retries: Retry config; type depends on library:
166-
* urllib3: int | urllib3.util.retry.Retry
167-
* asyncio: int | aiohttp_retry.RetryOptionsBase
165+
:param retries: int | urllib3.util.retry.Retry - Retry configuration.
168166
:param ca_cert_data: verify the peer using concatenated CA certificate data
169167
in PEM (str) or DER (bytes) format.
170168
:param cert_file: the path to a client certificate file, for mTLS.

samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ class Configuration:
167167
values before.
168168
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
169169
in PEM format.
170-
:param retries: Retry config; type depends on library:
171-
* urllib3: int | urllib3.util.retry.Retry
172-
* asyncio: int | aiohttp_retry.RetryOptionsBase
170+
:param retries: int | aiohttp_retry.RetryOptionsBase - Retry configuration.
173171
:param ca_cert_data: verify the peer using concatenated CA certificate data
174172
in PEM (str) or DER (bytes) format.
175173
:param cert_file: the path to a client certificate file, for mTLS.

samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ class Configuration:
167167
values before.
168168
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
169169
in PEM format.
170-
:param retries: Retry config; type depends on library:
171-
* urllib3: int | urllib3.util.retry.Retry
172-
* asyncio: int | aiohttp_retry.RetryOptionsBase
170+
:param retries: int | aiohttp_retry.RetryOptionsBase - Retry configuration.
173171
:param ca_cert_data: verify the peer using concatenated CA certificate data
174172
in PEM (str) or DER (bytes) format.
175173
:param cert_file: the path to a client certificate file, for mTLS.

samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ class Configuration:
168168
values before.
169169
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
170170
in PEM format.
171-
:param retries: Retry config; type depends on library:
172-
* urllib3: int | urllib3.util.retry.Retry
173-
* asyncio: int | aiohttp_retry.RetryOptionsBase
171+
:param retries: int | urllib3.util.retry.Retry - Retry configuration.
174172
:param ca_cert_data: verify the peer using concatenated CA certificate data
175173
in PEM (str) or DER (bytes) format.
176174
:param cert_file: the path to a client certificate file, for mTLS.

samples/openapi3/client/petstore/python/petstore_api/configuration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ class Configuration:
168168
values before.
169169
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
170170
in PEM format.
171-
:param retries: Retry config; type depends on library:
172-
* urllib3: int | urllib3.util.retry.Retry
173-
* asyncio: int | aiohttp_retry.RetryOptionsBase
171+
:param retries: int | urllib3.util.retry.Retry - Retry configuration.
174172
:param ca_cert_data: verify the peer using concatenated CA certificate data
175173
in PEM (str) or DER (bytes) format.
176174
:param cert_file: the path to a client certificate file, for mTLS.

0 commit comments

Comments
 (0)