soia-client 1.0.23__tar.gz → 1.0.24__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.
Files changed (33) hide show
  1. {soia_client-1.0.23 → soia_client-1.0.24}/PKG-INFO +1 -1
  2. {soia_client-1.0.23 → soia_client-1.0.24}/pyproject.toml +1 -1
  3. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/service_client.py +0 -1
  4. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/structs.py +1 -1
  5. {soia_client-1.0.23 → soia_client-1.0.24}/soia_client.egg-info/PKG-INFO +1 -1
  6. {soia_client-1.0.23 → soia_client-1.0.24}/tests/test_module_initializer.py +1 -0
  7. {soia_client-1.0.23 → soia_client-1.0.24}/LICENSE +0 -0
  8. {soia_client-1.0.23 → soia_client-1.0.24}/README.md +0 -0
  9. {soia_client-1.0.23 → soia_client-1.0.24}/setup.cfg +0 -0
  10. {soia_client-1.0.23 → soia_client-1.0.24}/soia/__init__.py +0 -0
  11. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/__init__.py +0 -0
  12. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/arrays.py +0 -0
  13. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/enums.py +0 -0
  14. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/function_maker.py +0 -0
  15. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/keyed_items.py +0 -0
  16. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/method.py +0 -0
  17. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/never.py +0 -0
  18. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/optionals.py +0 -0
  19. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/primitives.py +0 -0
  20. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/repr.py +0 -0
  21. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/serializer.py +0 -0
  22. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/serializers.py +0 -0
  23. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/service.py +0 -0
  24. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/timestamp.py +0 -0
  25. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_impl/type_adapter.py +0 -0
  26. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_module_initializer.py +0 -0
  27. {soia_client-1.0.23 → soia_client-1.0.24}/soia/_spec.py +0 -0
  28. {soia_client-1.0.23 → soia_client-1.0.24}/soia/reflection.py +0 -0
  29. {soia_client-1.0.23 → soia_client-1.0.24}/soia_client.egg-info/SOURCES.txt +0 -0
  30. {soia_client-1.0.23 → soia_client-1.0.24}/soia_client.egg-info/dependency_links.txt +0 -0
  31. {soia_client-1.0.23 → soia_client-1.0.24}/soia_client.egg-info/top_level.txt +0 -0
  32. {soia_client-1.0.23 → soia_client-1.0.24}/tests/test_serializers.py +0 -0
  33. {soia_client-1.0.23 → soia_client-1.0.24}/tests/test_timestamp.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soia-client
3
- Version: 1.0.23
3
+ Version: 1.0.24
4
4
  Author-email: Tyler Fibonacci <gepheum@gmail.com>
5
5
  License: MIT License
6
6
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "soia-client"
7
- version = "1.0.23"
7
+ version = "1.0.24"
8
8
  description = ""
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Tyler Fibonacci", email = "gepheum@gmail.com" }]
@@ -1,6 +1,5 @@
1
1
  import http.client
2
2
  import re
3
- import typing
4
3
  from typing import Any, Final, Mapping, Protocol
5
4
  from urllib.parse import urlparse
6
5
 
@@ -676,7 +676,7 @@ def _make_from_json_fn(
676
676
  name = field.field.name
677
677
  lvalue = f"ret.{field.field.attribute}"
678
678
  builder.append_ln(f' if "{name}" in json:')
679
- builder.append_ln(f" array_len = {field.field.number}")
679
+ builder.append_ln(f" array_len = {field.field.number + 1}")
680
680
  builder.append_ln(
681
681
  f" {lvalue} = ",
682
682
  field.type.from_json_expr(f'json["{name}"]'),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soia-client
3
- Version: 1.0.23
3
+ Version: 1.0.24
4
4
  Author-email: Tyler Fibonacci <gepheum@gmail.com>
5
5
  License: MIT License
6
6
 
@@ -518,6 +518,7 @@ class ModuleInitializerTestCase(unittest.TestCase):
518
518
  point = point_cls.SERIALIZER.from_json_code('{"x":1,"y":2}')
519
519
  self.assertEqual(point.x, 1.0)
520
520
  self.assertIsInstance(point.x, float)
521
+ self.assertEqual(point._array_len, 3)
521
522
 
522
523
  def test_point_with_unrecognized_and_removed_fields(self):
523
524
  point_cls = self.init_test_module()["Point"]
File without changes
File without changes
File without changes
File without changes