soia-client 1.0.2__py3-none-any.whl → 1.0.3__py3-none-any.whl

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: soia-client
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Author-email: Tyler Fibonacci <gepheum@gmail.com>
5
5
  License: MIT License
6
6
 
@@ -1,9 +1,9 @@
1
1
  soialib/__init__.py,sha256=5sEAu3ATaiMVbXE_8yb6Ikd5-ilj21tQ8zoQ2Uh2pBM,178
2
2
  soialib/keyed_items.py,sha256=q7MCn82obf-0jh7FcAhuw4eh9-wtuHIpkEFcSfc8EaY,338
3
- soialib/module_initializer.py,sha256=Is0GI6vF5fSp_9b9lifJ2ND9s8CaACii43INhj6ienQ,3275
3
+ soialib/module_initializer.py,sha256=Ix6hvZJC-WEMOmMmfFhOns261A_TW9BJGlVnuYnsrek,3289
4
4
  soialib/never.py,sha256=bYU63XyNX4e2wOUXQHhHWGO-an4IFr9_ur1ut6GmGN0,47
5
5
  soialib/serializer.py,sha256=quFXOYjj7sjfjQIVZPa0NPvKtO4LmYrRtNeFlZy_Aio,2599
6
- soialib/spec.py,sha256=D-sgw1yAuVA3fB7GA4yBSKcscYgoKCUB8NkjRPqVoOs,3517
6
+ soialib/spec.py,sha256=tyd51Tq06gu_SCw_CqQLr8PxJKF8FMhQw5TGaMCJbVo,3440
7
7
  soialib/timestamp.py,sha256=6VNKAJs7EwxBm3tEEk1Cy1FhAD6lSNdlB3K2Sg6QHIA,4065
8
8
  soialib/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  soialib/impl/arrays.py,sha256=YFDT5WG4Lpmbt0d5-9_dML8kIL9AS3LfJvlA0tr5J4A,4970
@@ -15,8 +15,8 @@ soialib/impl/primitives.py,sha256=X_ywRmVZI_Q5tatb1Qil6Xvdyh1J4ElfI-LOCn671Zk,59
15
15
  soialib/impl/repr.py,sha256=z-_jGNKuY__DfwQKW40xzZFf_eG6wGMJvuY_2hJrETA,1441
16
16
  soialib/impl/structs.py,sha256=pXPn6SeyZH-FwQXbvUG_uoc5DZ8oZgDQ5v_jx8Uf5aY,23576
17
17
  soialib/impl/type_adapter.py,sha256=IP3jF3wPgwKhWd7LKMmbbv1qUTv1HBAyMdpVrIg0_S0,2063
18
- soia_client-1.0.2.dist-info/LICENSE,sha256=SaAftKkX6hfSOiPdENQPS70tifH3PDHgazq8eK2Pwfw,1064
19
- soia_client-1.0.2.dist-info/METADATA,sha256=u0e4KsN9kI2u7sALv773M7j7FSRxy95_TZJU-Mnt2FY,1645
20
- soia_client-1.0.2.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
21
- soia_client-1.0.2.dist-info/top_level.txt,sha256=2vPmAo5G0SrCxYrNdJKJJVdpalYppgjO2mmz2PtsFUI,8
22
- soia_client-1.0.2.dist-info/RECORD,,
18
+ soia_client-1.0.3.dist-info/LICENSE,sha256=SaAftKkX6hfSOiPdENQPS70tifH3PDHgazq8eK2Pwfw,1064
19
+ soia_client-1.0.3.dist-info/METADATA,sha256=CNHQxVAx6XGudm53p4ALcqAA98XgOeW0ue6dF3osjLg,1645
20
+ soia_client-1.0.3.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
21
+ soia_client-1.0.3.dist-info/top_level.txt,sha256=2vPmAo5G0SrCxYrNdJKJJVdpalYppgjO2mmz2PtsFUI,8
22
+ soia_client-1.0.3.dist-info/RECORD,,
@@ -11,8 +11,8 @@ RecordAdapter = Union[structs.StructAdapter, enums.EnumAdapter]
11
11
  _record_id_to_adapter: dict[str, RecordAdapter] = {}
12
12
 
13
13
 
14
- def init_module(
15
- module: spec.Module,
14
+ def init_module_classes(
15
+ records: tuple[spec.Record, ...],
16
16
  globals: dict[str, Any],
17
17
  # For testing
18
18
  record_id_to_adapter: dict[str, RecordAdapter] = _record_id_to_adapter,
@@ -49,7 +49,7 @@ def init_module(
49
49
  return record_id_to_adapter[type]
50
50
 
51
51
  module_adapters: list[RecordAdapter] = []
52
- for record in module.records:
52
+ for record in records:
53
53
  if record.id in record_id_to_adapter:
54
54
  raise AssertionError(record.id)
55
55
  adapter: RecordAdapter
soialib/spec.py CHANGED
@@ -106,11 +106,6 @@ class Enum:
106
106
  Record = Union[Struct, Enum]
107
107
 
108
108
 
109
- @dataclass(frozen=True)
110
- class Module:
111
- records: tuple[Record, ...] = ()
112
-
113
-
114
109
  @dataclass(frozen=True)
115
110
  class RecordId:
116
111
  record_id: str