Commit 385d5d4
fix(proto): convert map keys from string to int during deserialization (#100)
* fix(proto): convert map keys from string to int during deserialization
Fixed an issue where map keys remained as strings instead of being converted to integers during deserialization. Added proper type conversion using _value_from_dict for map keys to ensure correct integer type conversion.
* Update src/betterproto2/__init__.py
Co-authored-by: Adrien <adrien.vannson@protonmail.com>
---------
Co-authored-by: Adrien <adrien.vannson@protonmail.com>1 parent 50d0edc commit 385d5d4
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
598 | 604 | | |
599 | 605 | | |
600 | 606 | | |
601 | | - | |
| 607 | + | |
602 | 608 | | |
603 | 609 | | |
604 | 610 | | |
| |||
1087 | 1093 | | |
1088 | 1094 | | |
1089 | 1095 | | |
1090 | | - | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
1091 | 1100 | | |
1092 | 1101 | | |
1093 | 1102 | | |
| |||
0 commit comments