tmsgpack 0.2.0__tar.gz → 0.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tmsgpack
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Typed MessagePack serializer (inspired by but different from msgpack)
5
5
  Home-page: https://github.com/Yaakov-Belch/tmsgpack
6
6
  Author: Yaakov Belch
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = tmsgpack
3
- version = 0.2.0
3
+ version = 0.2.2
4
4
  license = MIT
5
5
  author = Yaakov Belch
6
6
  author_email = yaakov.belch@gmail.com
@@ -1,7 +1,7 @@
1
1
  """tmsgpack - Typed MessagePack serializer"""
2
2
 
3
3
  ####################### Keep version in sync with setup.cfg #######################
4
- __version__ = '0.2.0' #
4
+ __version__ = '0.2.2' #
5
5
  ###################################################################################
6
6
 
7
7
  __all__ = [
@@ -37,7 +37,7 @@ class CodecAPI:
37
37
  """Extension/Hook: Define how to decode typed bytes."""
38
38
 
39
39
  @abstractmethod
40
- def value_from_tuple(self, obj_type, values: tuple) -> Any:
40
+ def value_from_list(self, obj_type, values: list) -> Any:
41
41
  """Extension/Hook: Define how to decode typed tuples / dicts."""
42
42
 
43
43
  @abstractmethod
@@ -91,7 +91,7 @@ class BasicCodec(EncodeDecode):
91
91
  def value_from_bytes(self, obj_type, data: bytes):
92
92
  raise TMsgpackDecodingError(f'No bytes extension defined: {obj_type=} {data=}')
93
93
 
94
- def value_from_tuple(self, obj_type, values: tuple):
94
+ def value_from_list(self, obj_type, values: list):
95
95
  raise TMsgpackDecodingError(f'No tuple extension defined: {obj_type=} {values=}')
96
96
 
97
97
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tmsgpack
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Typed MessagePack serializer (inspired by but different from msgpack)
5
5
  Home-page: https://github.com/Yaakov-Belch/tmsgpack
6
6
  Author: Yaakov Belch
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes