Skip to content

Commit c2cd83e

Browse files
committed
ci: regenerated with OpenAPI Doc 0.3.0, Speakeay CLI 1.78.3
1 parent 2058b4c commit c2cd83e

File tree

5 files changed

+29
-16
lines changed

5 files changed

+29
-16
lines changed

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,4 +856,14 @@ Based on:
856856
### Generated
857857
- [python v1.55.1] .
858858
### Releases
859-
- [PyPI v1.55.1] https://pypi.org/project/speakeasy-client-sdk-python/1.55.1 - .
859+
- [PyPI v1.55.1] https://pypi.org/project/speakeasy-client-sdk-python/1.55.1 - .
860+
861+
## 2023-09-05 00:09:33
862+
### Changes
863+
Based on:
864+
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
865+
- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy
866+
### Generated
867+
- [python v1.55.2] .
868+
### Releases
869+
- [PyPI v1.55.2] https://pypi.org/project/speakeasy-client-sdk-python/1.55.2 - .

gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ configVersion: 1.0.0
22
management:
33
docChecksum: 8c4f3932e054e1b349a9a34f12cf7e8c
44
docVersion: 0.3.0
5-
speakeasyVersion: 1.77.2
6-
generationVersion: 2.93.0
5+
speakeasyVersion: 1.78.3
6+
generationVersion: 2.96.3
77
generation:
88
sdkClassName: speakeasy
99
singleTagPerOp: false
1010
telemetryEnabled: true
1111
features:
1212
python:
13-
core: 2.85.2
13+
core: 2.85.3
1414
examples: 2.81.1
1515
globalSecurity: 2.81.1
1616
globalServerURLs: 2.82.0
1717
inputOutputModels: 2.81.1
1818
serverIDs: 2.81.1
1919
python:
20-
version: 1.55.1
20+
version: 1.55.2
2121
author: Speakeasy
2222
description: Speakeasy API Client SDK for Python
2323
maxMethodParams: 0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="speakeasy-client-sdk-python",
13-
version="1.55.1",
13+
version="1.55.2",
1414
author="Speakeasy",
1515
description="Speakeasy API Client SDK for Python",
1616
long_description=long_description,

src/speakeasy/sdkconfiguration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class SDKConfiguration:
1919
server: str = ''
2020
language: str = 'python'
2121
openapi_doc_version: str = '0.3.0'
22-
sdk_version: str = '1.55.1'
23-
gen_version: str = '2.93.0'
22+
sdk_version: str = '1.55.2'
23+
gen_version: str = '2.96.3'
2424

2525
def get_server_details(self) -> tuple[str, dict[str, str]]:
2626
if self.server_url:

src/speakeasy/utils/utils.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: dict,
112112
client.client.headers[header_name] = value
113113
elif scheme_type == 'http':
114114
if sub_type == 'bearer':
115-
client.client.headers[header_name] = value.lower().startswith('bearer ') and value or f'Bearer {value}'
115+
client.client.headers[header_name] = value.lower().startswith(
116+
'bearer ') and value or f'Bearer {value}'
116117
else:
117118
raise Exception('not supported')
118119
else:
@@ -235,7 +236,7 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str:
235236

236237

237238
def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[
238-
str, list[str]]:
239+
str, list[str]]:
239240
params: dict[str, list[str]] = {}
240241

241242
param_fields: Tuple[Field, ...] = fields(clazz)
@@ -377,7 +378,7 @@ def _get_query_param_field_name(obj_field: Field) -> str:
377378

378379

379380
def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delimiter: str) -> dict[
380-
str, list[str]]:
381+
str, list[str]]:
381382
return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, delimiter)
382383

383384

@@ -391,9 +392,9 @@ def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delim
391392

392393

393394
def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[
394-
str, any, any]:
395+
str, any, any]:
395396
if request is None:
396-
return None, None, None, None
397+
return None, None, None
397398

398399
if not is_dataclass(request) or not hasattr(request, request_field_name):
399400
return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method],
@@ -486,7 +487,7 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str,
486487

487488

488489
def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[
489-
str, list[str]]:
490+
str, list[str]]:
490491
if existing is None:
491492
existing = []
492493

@@ -604,7 +605,8 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f
604605
items.append(_val_to_string(value))
605606

606607
if len(items) > 0:
607-
params[field_name] = [delimiter.join([str(item) for item in items])]
608+
params[field_name] = [delimiter.join(
609+
[str(item) for item in items])]
608610
else:
609611
params[field_name] = [_val_to_string(obj)]
610612

@@ -681,7 +683,8 @@ def unmarshal_json(data, typ):
681683
try:
682684
out = unmarshal.from_dict({"res": json_dict})
683685
except AttributeError as attr_err:
684-
raise AttributeError(f'unable to unmarshal {data} as {typ}') from attr_err
686+
raise AttributeError(
687+
f'unable to unmarshal {data} as {typ}') from attr_err
685688
return out.res
686689

687690

0 commit comments

Comments
 (0)