soia-client 1.1.16__tar.gz → 1.1.18__tar.gz
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.
- {soia_client-1.1.16/soia_client.egg-info → soia_client-1.1.18}/PKG-INFO +1 -1
- {soia_client-1.1.16 → soia_client-1.1.18}/pyproject.toml +1 -1
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/structs.py +10 -11
- {soia_client-1.1.16 → soia_client-1.1.18/soia_client.egg-info}/PKG-INFO +1 -1
- {soia_client-1.1.16 → soia_client-1.1.18}/LICENSE +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/README.md +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/setup.cfg +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/__init__.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/__init__.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/arrays.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/binary.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/enums.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/function_maker.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/keep.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/keyed_items.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/method.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/never.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/optionals.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/primitives.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/repr.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/serializer.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/serializers.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/service.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/service_client.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/timestamp.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_impl/type_adapter.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_module_initializer.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/_spec.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia/reflection.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia_client.egg-info/SOURCES.txt +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia_client.egg-info/dependency_links.txt +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/soia_client.egg-info/top_level.txt +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/tests/test_module_initializer.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/tests/test_serializers.py +0 -0
- {soia_client-1.1.16 → soia_client-1.1.18}/tests/test_timestamp.py +0 -0
|
@@ -852,14 +852,6 @@ def _make_from_json_fn(
|
|
|
852
852
|
f" if array_len <= {num_slots_incl_removed} or not keep_unrecognized_fields:"
|
|
853
853
|
)
|
|
854
854
|
builder.append_ln(" ret._unrecognized = None")
|
|
855
|
-
builder.append_ln(
|
|
856
|
-
" ret._array_len = ",
|
|
857
|
-
_adjust_array_len_expr(
|
|
858
|
-
"array_len",
|
|
859
|
-
removed_numbers=removed_numbers,
|
|
860
|
-
num_slots_excl_removed=num_slots_excl_removed,
|
|
861
|
-
),
|
|
862
|
-
)
|
|
863
855
|
builder.append_ln(" else:")
|
|
864
856
|
builder.append_ln(
|
|
865
857
|
" ret._unrecognized = ",
|
|
@@ -868,7 +860,14 @@ def _make_from_json_fn(
|
|
|
868
860
|
Expr.local("deepcopy", copy.deepcopy),
|
|
869
861
|
f"(json[{num_slots_incl_removed}:]), adjusted_json_array_len=array_len)",
|
|
870
862
|
)
|
|
871
|
-
builder.append_ln(
|
|
863
|
+
builder.append_ln(
|
|
864
|
+
" ret._array_len = ",
|
|
865
|
+
_adjust_array_len_expr(
|
|
866
|
+
"array_len",
|
|
867
|
+
removed_numbers=removed_numbers,
|
|
868
|
+
num_slots_excl_removed=num_slots_excl_removed,
|
|
869
|
+
),
|
|
870
|
+
)
|
|
872
871
|
|
|
873
872
|
builder.append_ln("else:")
|
|
874
873
|
builder.append_ln(" array_len = 0")
|
|
@@ -953,7 +952,7 @@ def _make_decode_fn(
|
|
|
953
952
|
" ", Expr.local("decode_unused", decode_unused), "(stream)"
|
|
954
953
|
)
|
|
955
954
|
builder.append_ln(" start_offset = stream.position")
|
|
956
|
-
builder.append_ln(" for _ in range(array_len - {num_slots_incl_removed}):")
|
|
955
|
+
builder.append_ln(f" for _ in range(array_len - {num_slots_incl_removed}):")
|
|
957
956
|
builder.append_ln(" ", Expr.local("decode_unused", decode_unused), "(stream)")
|
|
958
957
|
builder.append_ln(" end_offset = stream.position")
|
|
959
958
|
builder.append_ln(
|
|
@@ -969,7 +968,7 @@ def _make_decode_fn(
|
|
|
969
968
|
builder.append_ln(" ret._unrecognized = None")
|
|
970
969
|
|
|
971
970
|
builder.append_ln(
|
|
972
|
-
"
|
|
971
|
+
"ret._array_len = ",
|
|
973
972
|
_adjust_array_len_expr(
|
|
974
973
|
"array_len",
|
|
975
974
|
removed_numbers=removed_numbers,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|