sonolus.py 0.1.7__py3-none-any.whl → 0.1.8__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/num.py +2 -2
- {sonolus_py-0.1.7.dist-info → sonolus_py-0.1.8.dist-info}/METADATA +2 -2
- {sonolus_py-0.1.7.dist-info → sonolus_py-0.1.8.dist-info}/RECORD +6 -6
- {sonolus_py-0.1.7.dist-info → sonolus_py-0.1.8.dist-info}/WHEEL +0 -0
- {sonolus_py-0.1.7.dist-info → sonolus_py-0.1.8.dist-info}/entry_points.txt +0 -0
- {sonolus_py-0.1.7.dist-info → sonolus_py-0.1.8.dist-info}/licenses/LICENSE +0 -0
sonolus/script/num.py
CHANGED
|
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
|
|
4
4
|
import operator
|
|
5
5
|
from collections.abc import Callable, Iterable
|
|
6
|
-
from typing import TYPE_CHECKING, Any, Self,
|
|
6
|
+
from typing import TYPE_CHECKING, Any, Self, final, runtime_checkable, TypeGuard
|
|
7
7
|
|
|
8
8
|
from sonolus.backend.ir import IRConst, IRGet, IRPureInstr, IRSet
|
|
9
9
|
from sonolus.backend.ops import Op
|
|
@@ -19,7 +19,7 @@ class _NumMeta(type):
|
|
|
19
19
|
return isinstance(instance, float | int | bool) or _is_num(instance)
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
def _is_num(value: Any) ->
|
|
22
|
+
def _is_num(value: Any) -> TypeGuard[Num]:
|
|
23
23
|
"""Check if a value is a precisely Num instance."""
|
|
24
24
|
return type.__instancecheck__(Num, value) # type: ignore # noqa: PLC2801
|
|
25
25
|
|
|
@@ -48,7 +48,7 @@ sonolus/script/instruction.py,sha256=PNfxC1dhT_hB0BxhDV3KXMn_kKxfI0t1iZmg8m6ddMU
|
|
|
48
48
|
sonolus/script/interval.py,sha256=3wMy7YlL6XV0g7w3eIDQDXl1WfTjW4NunKtwRxRMnDQ,9004
|
|
49
49
|
sonolus/script/iterator.py,sha256=ZErUmpRrXISe1xiT3VOjHzcqqLhpfT9FI7Kz2s2vUpk,4163
|
|
50
50
|
sonolus/script/level.py,sha256=NuXr8SalXn4eMm00OOYfWPQ-EXhJIKVCtbiIKX2SGag,1872
|
|
51
|
-
sonolus/script/num.py,sha256
|
|
51
|
+
sonolus/script/num.py,sha256=70dFsC5mcELiQoZk1Da1h1sHZ0Ed1D8oZzgX_hlPq9s,13917
|
|
52
52
|
sonolus/script/options.py,sha256=nTOuoRC2p_qoMx4ngOVDY2WZDooTxwwGTGKyb994v2A,7516
|
|
53
53
|
sonolus/script/particle.py,sha256=K06ArT9tstRNdbuGIviDmDDWcK3-ieA53LHg0Xvizow,8304
|
|
54
54
|
sonolus/script/pointer.py,sha256=pOh5vCSl6xR7mDm5PMOhBc_wf4O-b938DE0LtZWBmPc,1119
|
|
@@ -82,8 +82,8 @@ sonolus/script/internal/range.py,sha256=lrTanQFHU7RuQxSSPwDdoC30Y8FnHGxcP1Ahditu
|
|
|
82
82
|
sonolus/script/internal/transient.py,sha256=pSDFGu0m26zVsp6owmNTeSPue-osDd1JahjJSijW8t0,1520
|
|
83
83
|
sonolus/script/internal/tuple_impl.py,sha256=vjXmScLVdeTkDn3t9fgIRqtW31iwngnaP2rmA6nlsLw,3431
|
|
84
84
|
sonolus/script/internal/value.py,sha256=ik9sMKl0TbsH_C6QNxD4WfpAnmBFISgmmlazWwh3kY0,4308
|
|
85
|
-
sonolus_py-0.1.
|
|
86
|
-
sonolus_py-0.1.
|
|
87
|
-
sonolus_py-0.1.
|
|
88
|
-
sonolus_py-0.1.
|
|
89
|
-
sonolus_py-0.1.
|
|
85
|
+
sonolus_py-0.1.8.dist-info/METADATA,sha256=cfD6gibjNFF16Xw5L4tIe_cUX5WYG_HFt4Tl8fVGkK8,216
|
|
86
|
+
sonolus_py-0.1.8.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
87
|
+
sonolus_py-0.1.8.dist-info/entry_points.txt,sha256=oTYspY_b7SA8TptEMTDxh4-Aj-ZVPnYC9f1lqH6s9G4,54
|
|
88
|
+
sonolus_py-0.1.8.dist-info/licenses/LICENSE,sha256=JEKpqVhQYfEc7zg3Mj462sKbKYmO1K7WmvX1qvg9IJk,1067
|
|
89
|
+
sonolus_py-0.1.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|