soia-client 1.0.2__py3-none-any.whl → 1.0.4__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.
- {soia_client-1.0.2.dist-info → soia_client-1.0.4.dist-info}/METADATA +1 -1
- {soia_client-1.0.2.dist-info → soia_client-1.0.4.dist-info}/RECORD +7 -7
- soialib/module_initializer.py +4 -4
- soialib/spec.py +1 -6
- {soia_client-1.0.2.dist-info → soia_client-1.0.4.dist-info}/LICENSE +0 -0
- {soia_client-1.0.2.dist-info → soia_client-1.0.4.dist-info}/WHEEL +0 -0
- {soia_client-1.0.2.dist-info → soia_client-1.0.4.dist-info}/top_level.txt +0 -0
|
@@ -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=
|
|
3
|
+
soialib/module_initializer.py,sha256=d2Y-u1Jddva9-v25Yc4xlX7ifaMXoO4WurF1r6QxBaU,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=
|
|
6
|
+
soialib/spec.py,sha256=eUw9iISeQd-utq2Rl_FTnXKXpawg7piWkFL92FfQCik,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.
|
|
19
|
-
soia_client-1.0.
|
|
20
|
-
soia_client-1.0.
|
|
21
|
-
soia_client-1.0.
|
|
22
|
-
soia_client-1.0.
|
|
18
|
+
soia_client-1.0.4.dist-info/LICENSE,sha256=SaAftKkX6hfSOiPdENQPS70tifH3PDHgazq8eK2Pwfw,1064
|
|
19
|
+
soia_client-1.0.4.dist-info/METADATA,sha256=DN8YpGeiXalIL0SpGElb6ByIoWQZC6gbbUFoNU1X3oc,1645
|
|
20
|
+
soia_client-1.0.4.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
21
|
+
soia_client-1.0.4.dist-info/top_level.txt,sha256=2vPmAo5G0SrCxYrNdJKJJVdpalYppgjO2mmz2PtsFUI,8
|
|
22
|
+
soia_client-1.0.4.dist-info/RECORD,,
|
soialib/module_initializer.py
CHANGED
|
@@ -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
|
|
15
|
-
|
|
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,
|
|
@@ -43,13 +43,13 @@ def init_module(
|
|
|
43
43
|
type.key_attributes,
|
|
44
44
|
)
|
|
45
45
|
elif isinstance(type, spec.OptionalType):
|
|
46
|
-
return optionals.get_optional_adapter(resolve_type(type.
|
|
46
|
+
return optionals.get_optional_adapter(resolve_type(type.other))
|
|
47
47
|
elif isinstance(type, str):
|
|
48
48
|
# A record id.
|
|
49
49
|
return record_id_to_adapter[type]
|
|
50
50
|
|
|
51
51
|
module_adapters: list[RecordAdapter] = []
|
|
52
|
-
for record in
|
|
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
|
@@ -24,7 +24,7 @@ class ArrayType:
|
|
|
24
24
|
|
|
25
25
|
@dataclass(frozen=True)
|
|
26
26
|
class OptionalType:
|
|
27
|
-
|
|
27
|
+
other: "Type"
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
# TODO: comment
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|