sonolus.py 0.6.0__py3-none-any.whl → 0.6.1__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 sonolus.py might be problematic. Click here for more details.
- sonolus/script/internal/impl.py +1 -1
- sonolus/script/record.py +2 -0
- {sonolus_py-0.6.0.dist-info → sonolus_py-0.6.1.dist-info}/METADATA +1 -1
- {sonolus_py-0.6.0.dist-info → sonolus_py-0.6.1.dist-info}/RECORD +7 -7
- {sonolus_py-0.6.0.dist-info → sonolus_py-0.6.1.dist-info}/WHEEL +0 -0
- {sonolus_py-0.6.0.dist-info → sonolus_py-0.6.1.dist-info}/entry_points.txt +0 -0
- {sonolus_py-0.6.0.dist-info → sonolus_py-0.6.1.dist-info}/licenses/LICENSE +0 -0
sonolus/script/internal/impl.py
CHANGED
|
@@ -92,7 +92,7 @@ def try_validate_value(value: Any) -> Value | None:
|
|
|
92
92
|
Union,
|
|
93
93
|
}:
|
|
94
94
|
return TypingSpecialFormConstant.of(special_form)
|
|
95
|
-
case other_type if get_origin(value) in {Literal, Annotated, UnionType, tuple}:
|
|
95
|
+
case other_type if get_origin(value) in {Literal, Annotated, UnionType, tuple, type}:
|
|
96
96
|
return BasicConstantValue.of(other_type)
|
|
97
97
|
case _GlobalPlaceholder():
|
|
98
98
|
return value.get()
|
sonolus/script/record.py
CHANGED
|
@@ -230,6 +230,8 @@ class Record(GenericValue, metaclass=RecordMeta):
|
|
|
230
230
|
result = []
|
|
231
231
|
for field in cls._fields_:
|
|
232
232
|
result.extend(field.type._flat_keys_(f"{prefix}.{field.name}"))
|
|
233
|
+
if len(result) == 1:
|
|
234
|
+
return [prefix]
|
|
233
235
|
return result
|
|
234
236
|
|
|
235
237
|
def _get_(self) -> Self:
|
|
@@ -57,7 +57,7 @@ sonolus/script/pointer.py,sha256=FoOfyD93r0G5d_2BaKfeOT9SqkOP3hq6sqtOs_Rb0c8,151
|
|
|
57
57
|
sonolus/script/printing.py,sha256=mNYu9QWiacBBGZrnePZQMVwbbguoelUps9GiOK_aVRU,2096
|
|
58
58
|
sonolus/script/project.py,sha256=BDGaae3lXWQqZgY3lF3_27VSSk_oGEA4sbN-gQFlhAM,4157
|
|
59
59
|
sonolus/script/quad.py,sha256=XoAjaUqR60zIrC_CwheZs7HwS-DRS58yUmlj9GIjX7k,11179
|
|
60
|
-
sonolus/script/record.py,sha256
|
|
60
|
+
sonolus/script/record.py,sha256=igmawc0hqb98YVcZnPTThHvnIP88Qelhoge4cNJx45Q,12770
|
|
61
61
|
sonolus/script/runtime.py,sha256=rJZM_KbKmnwpjhDEpR0DrM6EMSEu46apIErWA_pfLJA,33321
|
|
62
62
|
sonolus/script/sprite.py,sha256=kqFESwQjR-tTJ3EEMnXmMBxX-gCjtPYwF5Pgx1OInNM,16317
|
|
63
63
|
sonolus/script/stream.py,sha256=qVljaCxJJtQs7aBwfUG15pYvztb4jFYzSLGDh5t4DTA,24713
|
|
@@ -76,7 +76,7 @@ sonolus/script/internal/descriptor.py,sha256=XRFey-EjiAm_--KsNl-8N0Mi_iyQwlPh68g
|
|
|
76
76
|
sonolus/script/internal/dict_impl.py,sha256=alu_wKGSk1kZajNf64qbe7t71shEzD4N5xNIATH8Swo,1885
|
|
77
77
|
sonolus/script/internal/error.py,sha256=ZNnsvQVQAnFKzcvsm6-sste2lo-tP5pPI8sD7XlAZWc,490
|
|
78
78
|
sonolus/script/internal/generic.py,sha256=F0-cCiRNGTaUJvYlpmkiOsU3Xge_XjoBpBwBhH_qS_s,7577
|
|
79
|
-
sonolus/script/internal/impl.py,sha256=
|
|
79
|
+
sonolus/script/internal/impl.py,sha256=JzRk2iylXHNk7q7f_H84spsix2gcnoTqo-hLbIegjoI,3261
|
|
80
80
|
sonolus/script/internal/introspection.py,sha256=guL9_NR2D3OJAnNpeFdyYkO_vVXk-3KQr2-y4YielM0,1133
|
|
81
81
|
sonolus/script/internal/math_impls.py,sha256=nHSLgA7Tcx7jY1p07mYBCeSRmVx713bwdNayCIcaXSE,2652
|
|
82
82
|
sonolus/script/internal/native.py,sha256=DQxmzxgLG_UsLpXhIEtBdO7eIeDFprU78UBDC4OZzw0,1597
|
|
@@ -86,8 +86,8 @@ sonolus/script/internal/simulation_context.py,sha256=LGxLTvxbqBIhoe1R-SfwGajNIDw
|
|
|
86
86
|
sonolus/script/internal/transient.py,sha256=y2AWABqF1aoaP6H4_2u4MMpNioC4OsZQCtPyNI0txqo,1634
|
|
87
87
|
sonolus/script/internal/tuple_impl.py,sha256=DPNdmmRmupU8Ah4_XKq6-PdT336l4nt15_uCJKQGkkk,3587
|
|
88
88
|
sonolus/script/internal/value.py,sha256=OngrCdmY_h6mV2Zgwqhuo4eYFad0kTk6263UAxctZcY,6963
|
|
89
|
-
sonolus_py-0.6.
|
|
90
|
-
sonolus_py-0.6.
|
|
91
|
-
sonolus_py-0.6.
|
|
92
|
-
sonolus_py-0.6.
|
|
93
|
-
sonolus_py-0.6.
|
|
89
|
+
sonolus_py-0.6.1.dist-info/METADATA,sha256=OMfsfCDRgKYqEstwDRS406iyVIZR6yofrkS3VOP7kVg,302
|
|
90
|
+
sonolus_py-0.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
91
|
+
sonolus_py-0.6.1.dist-info/entry_points.txt,sha256=oTYspY_b7SA8TptEMTDxh4-Aj-ZVPnYC9f1lqH6s9G4,54
|
|
92
|
+
sonolus_py-0.6.1.dist-info/licenses/LICENSE,sha256=JEKpqVhQYfEc7zg3Mj462sKbKYmO1K7WmvX1qvg9IJk,1067
|
|
93
|
+
sonolus_py-0.6.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|