From 999733397e5171f15a7c5b90d9be443497cd979f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 25 Jun 2024 00:10:33 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.315.2 --- .speakeasy/gen.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- gen.yaml | 2 +- setup.py | 2 +- src/ding/sdkconfiguration.py | 6 +++--- src/ding/utils/utils.py | 12 ++++++++++++ 6 files changed, 33 insertions(+), 11 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 65fe9d4..80261c7 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 81c437b1-ab8d-4cec-8b8f-8f71d1bdb7a2 management: docChecksum: 85248a8dd6a5cd6fea1b82dfc30249e9 docVersion: 1.0.0 - speakeasyVersion: 1.310.0 - generationVersion: 2.347.4 - releaseVersion: 3.7.5 - configChecksum: bdf8b36a1b180d5c382c06e63e0b27eb + speakeasyVersion: 1.315.2 + generationVersion: 2.352.0 + releaseVersion: 3.7.6 + configChecksum: 40b89d5c6c380c81cfff2dc9939a5249 repoURL: https://github.com/ding-live/ding-python.git repoSubDirectory: . installationURL: https://github.com/ding-live/ding-python.git @@ -14,7 +14,7 @@ management: features: python: additionalDependencies: 0.1.0 - core: 4.6.11 + core: 4.6.13 examples: 2.81.3 flattening: 2.81.1 globalSecurity: 2.83.5 diff --git a/RELEASES.md b/RELEASES.md index 5d6588e..bbab55f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -418,4 +418,14 @@ Based on: ### Generated - [python v3.7.5] . ### Releases -- [PyPI v3.7.5] https://pypi.org/project/ding_api_client/3.7.5 - . \ No newline at end of file +- [PyPI v3.7.5] https://pypi.org/project/ding_api_client/3.7.5 - . + +## 2024-06-25 00:10:27 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.315.2 (2.352.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v3.7.6] . +### Releases +- [PyPI v3.7.6] https://pypi.org/project/ding_api_client/3.7.6 - . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 3804460..3a59007 100755 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false python: - version: 3.7.5 + version: 3.7.6 additionalDependencies: dependencies: {} extraDependencies: diff --git a/setup.py b/setup.py index f06fee0..933d852 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setuptools.setup( name='ding_api_client', - version='3.7.5', + version='3.7.6', author='Ding', description='Python Client SDK', url='https://github.com/ding-live/ding-python.git', diff --git a/src/ding/sdkconfiguration.py b/src/ding/sdkconfiguration.py index 9d73160..fb46e91 100644 --- a/src/ding/sdkconfiguration.py +++ b/src/ding/sdkconfiguration.py @@ -24,9 +24,9 @@ class SDKConfiguration: server_idx: Optional[int] = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '3.7.5' - gen_version: str = '2.347.4' - user_agent: str = 'speakeasy-sdk/python 3.7.5 2.347.4 1.0.0 ding_api_client' + sdk_version: str = '3.7.6' + gen_version: str = '2.352.0' + user_agent: str = 'speakeasy-sdk/python 3.7.6 2.352.0 1.0.0 ding_api_client' retry_config: Optional[RetryConfig] = None def __post_init__(self): diff --git a/src/ding/utils/utils.py b/src/ding/utils/utils.py index c263197..1467a90 100644 --- a/src/ding/utils/utils.py +++ b/src/ding/utils/utils.py @@ -904,6 +904,9 @@ def bigintencode(val: int): def bigintdecoder(val): + if val is None: + return None + if isinstance(val, float): raise ValueError(f"{val} is a float") return int(val) @@ -918,6 +921,9 @@ def integerstrencode(val: int): def integerstrdecoder(val): + if val is None: + return None + if isinstance(val, float): raise ValueError(f"{val} is a float") return int(val) @@ -933,6 +939,9 @@ def numberstrencode(val: float): def numberstrdecoder(val): + if val is None: + return None + return float(val) @@ -950,6 +959,9 @@ def decimalencode(val: Decimal): def decimaldecoder(val): + if val is None: + return None + return Decimal(str(val))