Skip to content

Commit c3ac646

Browse files
authored
Merge pull request #448 from binance/release_common_v3.2.0
2 parents ed415b7 + deaa287 commit c3ac646

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
needs: detect-clients
2828
runs-on: ubuntu-latest
2929
strategy:
30-
max-parallel: 3
30+
max-parallel: 2
3131
matrix:
3232
client: ${{ fromJson(needs.detect-clients.outputs.clients) }}
3333
steps:

common/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 3.2.0 - 2025-10-10
4+
5+
### Changed (1)
6+
7+
- Fixed issue with response model deserialization in `send_request` function in `utils.py`.
8+
39
## 3.1.1 - 2025-09-16
410

511
### Changed (1)

common/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "binance-common"
3-
version = "3.1.1"
3+
version = "3.2.0"
44
description = "Binance Common Types and Utilities for Binance Connectors"
55
authors = ["Binance"]
66
license = "MIT"

common/src/binance_common/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,13 @@ def send_request(
387387
)
388388
if (is_list and not is_flat_list) or not response_model:
389389
data_function = lambda: parsed
390-
elif is_oneof or is_list:
390+
elif is_oneof or is_list or hasattr(response_model, "from_dict"):
391391
data_function = lambda: response_model.from_dict(parsed)
392392
else:
393393
data_function = lambda: response_model.model_validate(parsed)
394394

395395
try:
396-
data_function()
396+
data_function()
397397
final_data_function = data_function
398398
except Exception:
399399
final_data_function = lambda: parsed

0 commit comments

Comments
 (0)