soia-client 1.1.6__tar.gz → 1.1.7__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.
Potentially problematic release.
This version of soia-client might be problematic. Click here for more details.
- {soia_client-1.1.6/soia_client.egg-info → soia_client-1.1.7}/PKG-INFO +1 -1
- {soia_client-1.1.6 → soia_client-1.1.7}/pyproject.toml +1 -1
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/structs.py +6 -4
- {soia_client-1.1.6 → soia_client-1.1.7/soia_client.egg-info}/PKG-INFO +1 -1
- {soia_client-1.1.6 → soia_client-1.1.7}/LICENSE +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/README.md +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/setup.cfg +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/__init__.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/__init__.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/arrays.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/binary.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/enums.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/function_maker.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/keep.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/keyed_items.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/method.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/never.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/optionals.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/primitives.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/repr.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/serializer.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/serializers.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/service.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/service_client.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/timestamp.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_impl/type_adapter.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_module_initializer.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/_spec.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia/reflection.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia_client.egg-info/SOURCES.txt +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia_client.egg-info/dependency_links.txt +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/soia_client.egg-info/top_level.txt +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/tests/test_module_initializer.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/tests/test_serializers.py +0 -0
- {soia_client-1.1.6 → soia_client-1.1.7}/tests/test_timestamp.py +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import copy
|
|
2
|
+
import itertools
|
|
2
3
|
from collections.abc import Callable, Sequence
|
|
3
4
|
from dataclasses import FrozenInstanceError, dataclass
|
|
4
|
-
import itertools
|
|
5
5
|
from typing import Any, Final, Generic, Union, cast
|
|
6
6
|
|
|
7
7
|
from soia import _spec, reflection
|
|
8
|
+
from soia._impl.binary import decode_int64, decode_unused, encode_length_prefix
|
|
8
9
|
from soia._impl.function_maker import (
|
|
9
10
|
BodyBuilder,
|
|
10
11
|
Expr,
|
|
@@ -18,8 +19,7 @@ from soia._impl.function_maker import (
|
|
|
18
19
|
)
|
|
19
20
|
from soia._impl.keep import KEEP
|
|
20
21
|
from soia._impl.repr import repr_impl
|
|
21
|
-
from soia._impl.type_adapter import
|
|
22
|
-
from soia._impl.binary import decode_int64, decode_unused, encode_length_prefix
|
|
22
|
+
from soia._impl.type_adapter import ByteStream, T, TypeAdapter
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class StructAdapter(Generic[T], TypeAdapter[T]):
|
|
@@ -949,7 +949,9 @@ def _make_decode_fn(
|
|
|
949
949
|
f" if array_len > {num_slots_incl_removed} and keep_unrecognized_fields:"
|
|
950
950
|
)
|
|
951
951
|
for _ in range(num_slots_incl_removed - num_slots_excl_removed):
|
|
952
|
-
builder.append_ln(
|
|
952
|
+
builder.append_ln(
|
|
953
|
+
" ", Expr.local("decode_unused", decode_unused), "(stream)"
|
|
954
|
+
)
|
|
953
955
|
builder.append_ln(" start_offset = stream.position")
|
|
954
956
|
builder.append_ln(" for _ in range(array_len - {num_slots_incl_removed}):")
|
|
955
957
|
builder.append_ln(" ", Expr.local("decode_unused", decode_unused), "(stream)")
|
|
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
|