soia-client 1.1.12__tar.gz → 1.1.14__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.12/soia_client.egg-info → soia_client-1.1.14}/PKG-INFO +1 -1
- {soia_client-1.1.12 → soia_client-1.1.14}/pyproject.toml +1 -1
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/arrays.py +2 -2
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/primitives.py +1 -1
- {soia_client-1.1.12 → soia_client-1.1.14/soia_client.egg-info}/PKG-INFO +1 -1
- {soia_client-1.1.12 → soia_client-1.1.14}/tests/test_serializers.py +13 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/LICENSE +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/README.md +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/setup.cfg +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/__init__.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/__init__.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/binary.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/enums.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/function_maker.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/keep.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/keyed_items.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/method.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/never.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/optionals.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/repr.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/serializer.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/serializers.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/service.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/service_client.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/structs.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/timestamp.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_impl/type_adapter.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_module_initializer.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/_spec.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia/reflection.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia_client.egg-info/SOURCES.txt +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia_client.egg-info/dependency_links.txt +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/soia_client.egg-info/top_level.txt +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/tests/test_module_initializer.py +0 -0
- {soia_client-1.1.12 → soia_client-1.1.14}/tests/test_timestamp.py +0 -0
|
@@ -98,9 +98,9 @@ class _ArrayAdapter(Generic[T], TypeAdapter[tuple[T, ...]]):
|
|
|
98
98
|
listuple_class_local,
|
|
99
99
|
"([",
|
|
100
100
|
self.item_adapter.from_json_expr("_e", keep_unrecognized_expr),
|
|
101
|
-
" for _e in ",
|
|
101
|
+
" for _e in (",
|
|
102
102
|
json_expr,
|
|
103
|
-
"] or ",
|
|
103
|
+
" or ())] or ",
|
|
104
104
|
empty_listuple_local,
|
|
105
105
|
")",
|
|
106
106
|
)
|
|
@@ -147,6 +147,19 @@ class SerializersTestCase(unittest.TestCase):
|
|
|
147
147
|
),
|
|
148
148
|
"[\n true,\n false\n]",
|
|
149
149
|
)
|
|
150
|
+
self.assertEqual(
|
|
151
|
+
array_serializer(primitive_serializer("bool")).from_json_code(
|
|
152
|
+
"[ true, false ]"
|
|
153
|
+
),
|
|
154
|
+
(
|
|
155
|
+
True,
|
|
156
|
+
False,
|
|
157
|
+
),
|
|
158
|
+
)
|
|
159
|
+
self.assertEqual(
|
|
160
|
+
array_serializer(primitive_serializer("bool")).from_json_code("0"),
|
|
161
|
+
(),
|
|
162
|
+
)
|
|
150
163
|
|
|
151
164
|
def test_optional_serializer(self):
|
|
152
165
|
self.assertEqual(
|
|
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
|