Skip to content

Commit 54c8a7b

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.513.2
1 parent aacce30 commit 54c8a7b

File tree

8 files changed

+41
-28
lines changed

8 files changed

+41
-28
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: 82df1e5d-b6ea-4e02-ac0f-abaa4eefdb64
33
management:
44
docChecksum: 9bcafaf89ee2b5a77e6322f951e3c1fb
55
docVersion: "0.81"
6-
speakeasyVersion: 1.510.0
7-
generationVersion: 2.541.0
8-
releaseVersion: 0.20.12
9-
configChecksum: dfb8512ac2d9d2de61fd0fd52b1308e5
6+
speakeasyVersion: 1.513.2
7+
generationVersion: 2.545.2
8+
releaseVersion: 0.20.13
9+
configChecksum: 9b72defdfff8091019c90c006d27a673
1010
repoURL: https://github.com/mixpeek/python-sdk.git
1111
installationURL: https://github.com/mixpeek/python-sdk.git
1212
published: true

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generation:
1818
oAuth2ClientCredentialsEnabled: false
1919
oAuth2PasswordEnabled: false
2020
python:
21-
version: 0.20.12
21+
version: 0.20.13
2222
additionalDependencies:
2323
dev: {}
2424
main: {}

.speakeasy/workflow.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.510.0
1+
speakeasyVersion: 1.513.2
22
sources:
33
Mixpeek API:
44
sourceNamespace: mixpeek-api
@@ -15,7 +15,7 @@ targets:
1515
sourceRevisionDigest: sha256:8e6f4c34b8eaf1bd11ff68b489d956e9a9928399deac09bf604388854d2b71bb
1616
sourceBlobDigest: sha256:35541f9169ad0a4c902746e48f6498c61d1832e68083e3ca700f5daeb21bb4b8
1717
codeSamplesNamespace: mixpeek-api-python-code-samples
18-
codeSamplesRevisionDigest: sha256:48ceb041a9922f4bb6c4a7cc150a279ac3e657741fdf1aea5c8596cb2cac7cbe
18+
codeSamplesRevisionDigest: sha256:6f80b0891f19bffdd068c93cab8f45b8ce2467e03785a559c158643c6707514e
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,4 +678,14 @@ Based on:
678678
### Generated
679679
- [python v0.20.12] .
680680
### Releases
681-
- [PyPI v0.20.12] https://pypi.org/project/mixpeek/0.20.12 - .
681+
- [PyPI v0.20.12] https://pypi.org/project/mixpeek/0.20.12 - .
682+
683+
## 2025-03-07 00:07:21
684+
### Changes
685+
Based on:
686+
- OpenAPI Doc
687+
- Speakeasy CLI 1.513.2 (2.545.2) https://github.com/speakeasy-api/speakeasy
688+
### Generated
689+
- [python v0.20.13] .
690+
### Releases
691+
- [PyPI v0.20.13] https://pypi.org/project/mixpeek/0.20.13 - .

poetry.lock

Lines changed: 9 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mixpeek"
3-
version = "0.20.12"
3+
version = "0.20.13"
44
description = "Python Client SDK Generated by Speakeasy."
55
authors = [{ name = "Speakeasy" },]
66
readme = "README-PYPI.md"
@@ -10,7 +10,7 @@ dependencies = [
1010
"httpx >=0.28.1",
1111
"pydantic >=2.10.3",
1212
"python-dateutil >=2.8.2",
13-
"typing-inspect >=0.9.0",
13+
"typing-inspection >=0.4.0",
1414
]
1515

1616
[tool.poetry]

src/mixpeek/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "mixpeek"
6-
__version__: str = "0.20.12"
6+
__version__: str = "0.20.13"
77
__openapi_doc_version__: str = "0.81"
8-
__gen_version__: str = "2.541.0"
9-
__user_agent__: str = "speakeasy-sdk/python 0.20.12 2.541.0 0.81 mixpeek"
8+
__gen_version__: str = "2.545.2"
9+
__user_agent__: str = "speakeasy-sdk/python 0.20.13 2.545.2 0.81 mixpeek"
1010

1111
try:
1212
if __package__ is not None:

src/mixpeek/utils/serializers.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
from typing_extensions import get_origin
88
from pydantic import ConfigDict, create_model
99
from pydantic_core import from_json
10-
from typing_inspect import is_optional_type
10+
from typing_inspection.typing_objects import is_union
1111

1212
from ..types.basemodel import BaseModel, Nullable, OptionalNullable, Unset
1313

1414

1515
def serialize_decimal(as_str: bool):
1616
def serialize(d):
17-
if is_optional_type(type(d)) and d is None:
17+
# Optional[T] is a Union[T, None]
18+
if is_union(type(d)) and type(None) in get_args(type(d)) and d is None:
1819
return None
1920
if isinstance(d, Unset):
2021
return d
@@ -42,7 +43,8 @@ def validate_decimal(d):
4243

4344
def serialize_float(as_str: bool):
4445
def serialize(f):
45-
if is_optional_type(type(f)) and f is None:
46+
# Optional[T] is a Union[T, None]
47+
if is_union(type(f)) and type(None) in get_args(type(f)) and f is None:
4648
return None
4749
if isinstance(f, Unset):
4850
return f
@@ -70,7 +72,8 @@ def validate_float(f):
7072

7173
def serialize_int(as_str: bool):
7274
def serialize(i):
73-
if is_optional_type(type(i)) and i is None:
75+
# Optional[T] is a Union[T, None]
76+
if is_union(type(i)) and type(None) in get_args(type(i)) and i is None:
7477
return None
7578
if isinstance(i, Unset):
7679
return i
@@ -118,7 +121,8 @@ def validate(e):
118121

119122
def validate_const(v):
120123
def validate(c):
121-
if is_optional_type(type(c)) and c is None:
124+
# Optional[T] is a Union[T, None]
125+
if is_union(type(c)) and type(None) in get_args(type(c)) and c is None:
122126
return None
123127

124128
if v != c:

0 commit comments

Comments
 (0)