Skip to content

Commit 2b42d2f

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.513.2
1 parent b4abb99 commit 2b42d2f

File tree

8 files changed

+47
-34
lines changed

8 files changed

+47
-34
lines changed

.speakeasy/gen.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: e7042734-e669-4c36-85da-bbb4a7500ac8
33
management:
4-
docChecksum: d46974a8f679476a3e514e7380f08ad9
4+
docChecksum: a245d0e8fa1b557ee953898ee04f11ae
55
docVersion: 0.1.0
6-
speakeasyVersion: 1.510.0
7-
generationVersion: 2.541.0
8-
releaseVersion: 0.16.5
9-
configChecksum: 479d166755a548e9681ae23c3d51d2c4
6+
speakeasyVersion: 1.513.2
7+
generationVersion: 2.545.2
8+
releaseVersion: 0.16.6
9+
configChecksum: 3bed9917f3da8742fbbd938620303e84
1010
repoURL: https://github.com/polarsource/polar-python.git
1111
installationURL: https://github.com/polarsource/polar-python.git
1212
published: true

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generation:
1818
oAuth2ClientCredentialsEnabled: true
1919
oAuth2PasswordEnabled: false
2020
python:
21-
version: 0.16.5
21+
version: 0.16.6
2222
additionalDependencies:
2323
dev:
2424
pytest: ^8.3.3

.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.510.0
1+
speakeasyVersion: 1.513.2
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:3bb862ebbbf5599bdbba5cee5086521bf48cb2e5f3fa53a1aa1bfcc636648561
6-
sourceBlobDigest: sha256:eab033ed329343b543441cbd7c76e1a6f8e8c6fac3ccd47260b74cad3f8ccb0a
5+
sourceRevisionDigest: sha256:473c4b29b2ace0ef4f3638dc1f2f2aba4211e7086730348e513917fcc8162447
6+
sourceBlobDigest: sha256:61513ff303ed114f8d7a75181e7bbfcbd7efc299f6d5d51b33ff9cab71baf237
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1741254930
9+
- speakeasy-sdk-regen-1741306359
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:3bb862ebbbf5599bdbba5cee5086521bf48cb2e5f3fa53a1aa1bfcc636648561
16-
sourceBlobDigest: sha256:eab033ed329343b543441cbd7c76e1a6f8e8c6fac3ccd47260b74cad3f8ccb0a
15+
sourceRevisionDigest: sha256:473c4b29b2ace0ef4f3638dc1f2f2aba4211e7086730348e513917fcc8162447
16+
sourceBlobDigest: sha256:61513ff303ed114f8d7a75181e7bbfcbd7efc299f6d5d51b33ff9cab71baf237
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:901737bb1808ae65d7348e2f7b6777d0a0b1d0386377d23e3152264a9643d064
18+
codeSamplesRevisionDigest: sha256:149672910a03d5bcff5552fc28c5d45caaee92b8a57571ecf8964f61a83da6f6
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -593,4 +593,14 @@ Based on:
593593
### Generated
594594
- [python v0.16.5] .
595595
### Releases
596-
- [PyPI v0.16.5] https://pypi.org/project/polar-sdk/0.16.5 - .
596+
- [PyPI v0.16.5] https://pypi.org/project/polar-sdk/0.16.5 - .
597+
598+
## 2025-03-07 00:12:23
599+
### Changes
600+
Based on:
601+
- OpenAPI Doc
602+
- Speakeasy CLI 1.513.2 (2.545.2) https://github.com/speakeasy-api/speakeasy
603+
### Generated
604+
- [python v0.16.6] .
605+
### Releases
606+
- [PyPI v0.16.6] https://pypi.org/project/polar-sdk/0.16.6 - .

poetry.lock

+9-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "polar-sdk"
3-
version = "0.16.5"
3+
version = "0.16.6"
44
description = "Polar SDK for Python"
55
authors = [{ name = "Polar" },]
66
readme = "README-PYPI.md"
@@ -12,7 +12,7 @@ dependencies = [
1212
"pydantic >=2.10.3",
1313
"python-dateutil >=2.8.2",
1414
"standardwebhooks (>=1.0.0,<2.0.0)",
15-
"typing-inspect >=0.9.0",
15+
"typing-inspection >=0.4.0",
1616
]
1717

1818
[tool.poetry]

src/polar_sdk/_version.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "polar-sdk"
6-
__version__: str = "0.16.5"
6+
__version__: str = "0.16.6"
77
__openapi_doc_version__: str = "0.1.0"
8-
__gen_version__: str = "2.541.0"
9-
__user_agent__: str = "speakeasy-sdk/python 0.16.5 2.541.0 0.1.0 polar-sdk"
8+
__gen_version__: str = "2.545.2"
9+
__user_agent__: str = "speakeasy-sdk/python 0.16.6 2.545.2 0.1.0 polar-sdk"
1010

1111
try:
1212
if __package__ is not None:

src/polar_sdk/utils/serializers.py

+9-5
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)