structo 0.0.3__tar.gz → 0.0.4__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 (29) hide show
  1. {structo-0.0.3 → structo-0.0.4}/PKG-INFO +1 -1
  2. {structo-0.0.3 → structo-0.0.4}/structo/__init__.py +1 -1
  3. {structo-0.0.3 → structo-0.0.4}/structo/types/list.py +2 -2
  4. {structo-0.0.3 → structo-0.0.4}/.gitignore +0 -0
  5. {structo-0.0.3 → structo-0.0.4}/LICENSE +0 -0
  6. {structo-0.0.3 → structo-0.0.4}/README.md +0 -0
  7. {structo-0.0.3 → structo-0.0.4}/examples/custom_serializer.py +0 -0
  8. {structo-0.0.3 → structo-0.0.4}/examples/iterable_serializer.py +0 -0
  9. {structo-0.0.3 → structo-0.0.4}/examples/wav.py +0 -0
  10. {structo-0.0.3 → structo-0.0.4}/pyproject.toml +0 -0
  11. {structo-0.0.3 → structo-0.0.4}/pytest.ini +0 -0
  12. {structo-0.0.3 → structo-0.0.4}/structo/object.py +0 -0
  13. {structo-0.0.3 → structo-0.0.4}/structo/serialise.py +0 -0
  14. {structo-0.0.3 → structo-0.0.4}/structo/serializer.py +0 -0
  15. {structo-0.0.3 → structo-0.0.4}/structo/types/__init__.py +0 -0
  16. {structo-0.0.3 → structo-0.0.4}/structo/types/array.py +0 -0
  17. {structo-0.0.3 → structo-0.0.4}/structo/types/blob.py +0 -0
  18. {structo-0.0.3 → structo-0.0.4}/structo/types/buffer.py +0 -0
  19. {structo-0.0.3 → structo-0.0.4}/structo/types/literal.py +0 -0
  20. {structo-0.0.3 → structo-0.0.4}/structo/types/object.py +0 -0
  21. {structo-0.0.3 → structo-0.0.4}/structo/types/primatives.py +0 -0
  22. {structo-0.0.3 → structo-0.0.4}/structo/types/string.py +0 -0
  23. {structo-0.0.3 → structo-0.0.4}/structo/utils.py +0 -0
  24. {structo-0.0.3 → structo-0.0.4}/tests/test_array.py +0 -0
  25. {structo-0.0.3 → structo-0.0.4}/tests/test_primatives.py +0 -0
  26. {structo-0.0.3 → structo-0.0.4}/tests/test_size.py +0 -0
  27. {structo-0.0.3 → structo-0.0.4}/tests/utils.py +0 -0
  28. {structo-0.0.3 → structo-0.0.4}/union.py +0 -0
  29. {structo-0.0.3 → structo-0.0.4}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: structo
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Structify
5
5
  Author-email: Ben Brady <benbradybusiness@gmail.com>
6
6
  License-Expression: MIT
@@ -2,7 +2,7 @@
2
2
  Structify
3
3
  """
4
4
 
5
- __version__ = "0.0.3"
5
+ __version__ = "0.0.4"
6
6
 
7
7
  from .serializer import Serializer
8
8
  from .types import (
@@ -7,9 +7,9 @@ class List[T](Serializer[list[T]]):
7
7
  value_type: Serializer[T]
8
8
  length_type: Serializer[int]
9
9
 
10
- def __init__(self, value_type: Serializer[T], length_type: Serializer[int]) -> None:
11
- self.value_type = value_type
10
+ def __init__(self, length_type: Serializer[int], value_type: Serializer[T]) -> None:
12
11
  self.length_type = length_type
12
+ self.value_type = value_type
13
13
 
14
14
  def write(self, buf, value):
15
15
  length = len(value)
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