mixpeek 0.20.11__py3-none-any.whl → 0.20.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mixpeek/_version.py
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
import importlib.metadata
|
4
4
|
|
5
5
|
__title__: str = "mixpeek"
|
6
|
-
__version__: str = "0.20.
|
6
|
+
__version__: str = "0.20.13"
|
7
7
|
__openapi_doc_version__: str = "0.81"
|
8
|
-
__gen_version__: str = "2.
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.20.
|
8
|
+
__gen_version__: str = "2.545.2"
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.20.13 2.545.2 0.81 mixpeek"
|
10
10
|
|
11
11
|
try:
|
12
12
|
if __package__ is not None:
|
mixpeek/utils/serializers.py
CHANGED
@@ -7,14 +7,15 @@ import httpx
|
|
7
7
|
from typing_extensions import get_origin
|
8
8
|
from pydantic import ConfigDict, create_model
|
9
9
|
from pydantic_core import from_json
|
10
|
-
from
|
10
|
+
from typing_inspection.typing_objects import is_union
|
11
11
|
|
12
12
|
from ..types.basemodel import BaseModel, Nullable, OptionalNullable, Unset
|
13
13
|
|
14
14
|
|
15
15
|
def serialize_decimal(as_str: bool):
|
16
16
|
def serialize(d):
|
17
|
-
|
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:
|
18
19
|
return None
|
19
20
|
if isinstance(d, Unset):
|
20
21
|
return d
|
@@ -42,7 +43,8 @@ def validate_decimal(d):
|
|
42
43
|
|
43
44
|
def serialize_float(as_str: bool):
|
44
45
|
def serialize(f):
|
45
|
-
|
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:
|
46
48
|
return None
|
47
49
|
if isinstance(f, Unset):
|
48
50
|
return f
|
@@ -70,7 +72,8 @@ def validate_float(f):
|
|
70
72
|
|
71
73
|
def serialize_int(as_str: bool):
|
72
74
|
def serialize(i):
|
73
|
-
|
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:
|
74
77
|
return None
|
75
78
|
if isinstance(i, Unset):
|
76
79
|
return i
|
@@ -118,7 +121,8 @@ def validate_open_enum(is_int: bool):
|
|
118
121
|
|
119
122
|
def validate_const(v):
|
120
123
|
def validate(c):
|
121
|
-
|
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:
|
122
126
|
return None
|
123
127
|
|
124
128
|
if v != c:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.20.
|
3
|
+
Version: 0.20.13
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Author: Speakeasy
|
6
6
|
Requires-Python: >=3.9
|
@@ -14,7 +14,7 @@ Requires-Dist: eval-type-backport (>=0.2.0)
|
|
14
14
|
Requires-Dist: httpx (>=0.28.1)
|
15
15
|
Requires-Dist: pydantic (>=2.10.3)
|
16
16
|
Requires-Dist: python-dateutil (>=2.8.2)
|
17
|
-
Requires-Dist: typing-
|
17
|
+
Requires-Dist: typing-inspection (>=0.4.0)
|
18
18
|
Project-URL: Repository, https://github.com/mixpeek/python-sdk.git
|
19
19
|
Description-Content-Type: text/markdown
|
20
20
|
|
@@ -3,7 +3,7 @@ mixpeek/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,11
|
|
3
3
|
mixpeek/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
4
4
|
mixpeek/_hooks/sdkhooks.py,sha256=T0xbVPw8mvvFszHZlrZdtFrJBovAqE-JQfw4dS9Xi7Y,2495
|
5
5
|
mixpeek/_hooks/types.py,sha256=YEJVwBkHXS0VhTpa_xr7IZdJM5DdEi7QKq_LDv-6A2o,2810
|
6
|
-
mixpeek/_version.py,sha256=
|
6
|
+
mixpeek/_version.py,sha256=1cpW7eDox6NxjFZZwnHEF0Z-c6dybdeyqmWfHkgFzQU,458
|
7
7
|
mixpeek/assets.py,sha256=DnVKyR5-dsyyuCnzHn2s7EdRwCzg3qQidsJlqBxeCBA,79298
|
8
8
|
mixpeek/basesdk.py,sha256=qpFsPjn-FwedQiTfOScgF2VCWHRSPkd4TFH6GSlV4ww,12168
|
9
9
|
mixpeek/collections.py,sha256=_CjKk-BK0wK7GBPjqLzEOw2WAUCg4eiK76zcI-OUfbo,61653
|
@@ -193,9 +193,9 @@ mixpeek/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRlorRHEtI,
|
|
193
193
|
mixpeek/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
|
194
194
|
mixpeek/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
|
195
195
|
mixpeek/utils/security.py,sha256=XoK-R2YMyZtVWQte7FoezfGJS-dea9jz4qQ7w5dwNWc,6002
|
196
|
-
mixpeek/utils/serializers.py,sha256=
|
196
|
+
mixpeek/utils/serializers.py,sha256=QnZYapciPo23C4_rrZVZwseQErG9eHkEd2Z0hp2q2WI,5214
|
197
197
|
mixpeek/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
198
198
|
mixpeek/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
199
|
-
mixpeek-0.20.
|
200
|
-
mixpeek-0.20.
|
201
|
-
mixpeek-0.20.
|
199
|
+
mixpeek-0.20.13.dist-info/METADATA,sha256=1o-WyG7DAemvGHj0J8E6dDlvDULuQyksiY8bPBv9-KU,23490
|
200
|
+
mixpeek-0.20.13.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
201
|
+
mixpeek-0.20.13.dist-info/RECORD,,
|
File without changes
|