sonolus.py 0.1.0__py3-none-any.whl → 0.1.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/bucket.py CHANGED
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  from dataclasses import dataclass
4
4
  from enum import IntEnum
5
- from typing import Annotated, Any, Protocol, dataclass_transform, get_origin
5
+ from typing import Annotated, Any, NewType, dataclass_transform, get_origin
6
6
 
7
7
  from sonolus.backend.mode import Mode
8
8
  from sonolus.backend.ops import Op
@@ -158,8 +158,7 @@ def bucket(*, sprites: list[BucketSprite], unit: str | None = None) -> Any:
158
158
  return BucketInfo(sprites, unit)
159
159
 
160
160
 
161
- class Buckets(Protocol):
162
- _buckets_: list[BucketInfo]
161
+ type Buckets = NewType("Buckets", Any)
163
162
 
164
163
 
165
164
  @dataclass_transform()
sonolus/script/effect.py CHANGED
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from dataclasses import dataclass
4
- from typing import Annotated, Any, Protocol, dataclass_transform, get_origin
4
+ from typing import Annotated, Any, NewType, dataclass_transform, get_origin
5
5
 
6
6
  from sonolus.backend.ops import Op
7
7
  from sonolus.script.internal.introspection import get_field_specifiers
@@ -86,8 +86,7 @@ def effect(name: str) -> Any:
86
86
  return EffectInfo(name)
87
87
 
88
88
 
89
- class Effects(Protocol):
90
- _effects_: list[str]
89
+ type Effects = NewType("Effects", Any)
91
90
 
92
91
 
93
92
  @dataclass_transform()
sonolus/script/options.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # ruff: noqa: A002
2
2
  from dataclasses import dataclass
3
- from typing import Annotated, Any, ClassVar, Protocol, dataclass_transform, get_origin
3
+ from typing import Annotated, Any, NewType, dataclass_transform, get_origin
4
4
 
5
5
  from sonolus.backend.mode import Mode
6
6
  from sonolus.backend.place import BlockPlace
@@ -124,10 +124,7 @@ def select_option(
124
124
  return SelectOption(name, standard, advanced, scope, default, values)
125
125
 
126
126
 
127
- class Options(Protocol):
128
- _options_: ClassVar[list[SliderOption | ToggleOption | SelectOption]]
129
-
130
-
127
+ type Options = NewType("Options", Any)
131
128
  type OptionInfo = SliderOption | ToggleOption | SelectOption
132
129
 
133
130
 
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from dataclasses import dataclass
4
- from typing import Annotated, Any, Protocol, dataclass_transform, get_origin
4
+ from typing import Annotated, Any, NewType, dataclass_transform, get_origin
5
5
 
6
6
  from sonolus.backend.ops import Op
7
7
  from sonolus.script.graphics import QuadLike, flatten_quad
@@ -73,8 +73,7 @@ def particle(name: str) -> Any:
73
73
  return ParticleInfo(name)
74
74
 
75
75
 
76
- class Particles(Protocol):
77
- _particles_: list[str]
76
+ type Particles = NewType("Particles", Any)
78
77
 
79
78
 
80
79
  @dataclass_transform()
sonolus/script/sprite.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from dataclasses import dataclass
2
- from typing import Annotated, Any, Protocol, dataclass_transform, get_origin
2
+ from typing import Annotated, Any, NewType, dataclass_transform, get_origin
3
3
 
4
4
  from sonolus.backend.ops import Op
5
5
  from sonolus.script.graphics import QuadLike, flatten_quad
@@ -193,8 +193,7 @@ def skin_sprite(name: str) -> Any:
193
193
  return SkinSprite(name)
194
194
 
195
195
 
196
- class Skin(Protocol):
197
- _sprites_: list[str]
196
+ type Skin = NewType("Skin", Any)
198
197
 
199
198
 
200
199
  @dataclass_transform()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sonolus.py
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Sonolus engine development in Python
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.13
@@ -29,12 +29,12 @@ sonolus/build/project.py,sha256=x350tPcwKCYakdbrP796b545hVUaBwrzY0yEcQR7ut4,4023
29
29
  sonolus/script/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  sonolus/script/archetype.py,sha256=ktCJWh7bl3skzY-l8tF3Tmw7-G3SXR2wqCivb2zHkOo,23858
31
31
  sonolus/script/array.py,sha256=ithYhBG69KTqooZlV7nVQXqrqKtgKL4KJKQ3ZzxTZwg,8914
32
- sonolus/script/bucket.py,sha256=muCzGbqvEVzf39AnsVGfqfYGoA1zbGqTt-EXQW3g74M,5567
32
+ sonolus/script/bucket.py,sha256=LhqOPMJLN_OKsaVsLqgT0E0XSLAw5Tugr1jtHxb3aK0,5547
33
33
  sonolus/script/callbacks.py,sha256=UESpsFWuyk9EDBWrwStBakbjtIsGDE39myeTQsCWKMg,2444
34
34
  sonolus/script/comptime.py,sha256=qaUpaWWfZ3vwkZ43VjGK9hWb9sZepuDQHtGHdioos6U,4249
35
35
  sonolus/script/containers.py,sha256=yl6PlX840Km4SQRPGqy95h9Ol32Z-dYEO3ZzJB14dKc,7093
36
36
  sonolus/script/debug.py,sha256=nivmdVyowjppxzRUjuIHG2fkTMrurlpFrxJ83L0e348,1969
37
- sonolus/script/effect.py,sha256=fOeVGE-g1cQZO7aRLXax62GScmz69fhNqnev4fMSWWE,4154
37
+ sonolus/script/effect.py,sha256=aoyIuN-oTKi190pZkjYKRgqBDJTiQDsSFUrLo8LJmbY,4141
38
38
  sonolus/script/engine.py,sha256=W53NTA0KrG8hPFljLx7upsh2ghME4zYxnMqPhXoOMB8,2776
39
39
  sonolus/script/globals.py,sha256=PCPPy1sHH6NO737MtOyXLUXF0DYiG-WSFSWhXRlRd_A,7609
40
40
  sonolus/script/graphics.py,sha256=D821LmnUwOaElg8cGFPHPA1qRTYPVYsKBPR-vUPtBc0,2851
@@ -44,14 +44,14 @@ sonolus/script/iterator.py,sha256=tWdTWoV4pMZC74qCuWWNKV4n3yGFs1m4QRG3hY-VQok,54
44
44
  sonolus/script/level.py,sha256=mKkH3aSwMmYZbyVp7-2nEWpLJhT_1PHsqy-3JK6UyGI,1188
45
45
  sonolus/script/math.py,sha256=2HNKoIN6CV8J_1jsnxItXWQn8eUjlfvbPbMEav9li10,1636
46
46
  sonolus/script/num.py,sha256=dfg76xvMn21H0OJJkquajNayP78So-Ov3TWMImDtqDI,11695
47
- sonolus/script/options.py,sha256=URKZ2TRBLZSyom3vGillQeV2etRT1GjSAfP_ylREsSk,5778
48
- sonolus/script/particle.py,sha256=BnoJqmh8NfT2ZEAgGQJMPCmHDo6bjqDmsq29xpNlLOk,7423
47
+ sonolus/script/options.py,sha256=BOwEX_KNzqvypD4X-EHSuCqF9aKdODH_MyGF-g_PDLQ,5702
48
+ sonolus/script/particle.py,sha256=EjBqChV_S-Al-m-0A5QIuxW-vyh8CwQGyKMK8m1HOW8,7410
49
49
  sonolus/script/pointer.py,sha256=L4qnJumjYgdZ0rs6lg19MVZivk4Yz0gMGNMsYXvv-ac,1155
50
50
  sonolus/script/project.py,sha256=7K3iwUdSXAQyEAwcZvtfxgv3M0IaUaXSroUBEj4dnuA,416
51
51
  sonolus/script/range.py,sha256=EgdEJYeoq2chD0xCJs2oZZhM_ubWHOzZZwvAZmXxQLs,1753
52
52
  sonolus/script/record.py,sha256=l4h4mubPevUAW4oKQpz-ZNXea9EbsbSv9je_KV5CIPE,10381
53
53
  sonolus/script/runtime.py,sha256=fXEGd7qD9vpofSlfjlIdzxO-RpPgy2p3zTLEDDuf6FU,14178
54
- sonolus/script/sprite.py,sha256=w7bD6ZcD6J9Rq223OxZB--GlHST0wrVcQfHo1fcTtXs,13135
54
+ sonolus/script/sprite.py,sha256=HuOWrWcU73L0rVStgBeLWfumAqlBGaGOwGRjH15LPag,13119
55
55
  sonolus/script/text.py,sha256=CYiqsyRgzCsCggOBp2RwGGT4QpGo15k1WZx6P5xuwyM,13121
56
56
  sonolus/script/timing.py,sha256=qSkoU7bVNaCFPUwpVUMr44xP75h2bapPoIHDsGEReWU,1070
57
57
  sonolus/script/transform.py,sha256=Oa0baFc1eBv0Rj6GxmpLCTiTW83-CQ0w1HIJwt-Y_e8,3203
@@ -68,8 +68,8 @@ sonolus/script/internal/impl.py,sha256=tnIaQCmw0SlFpmnSJp2aEys9XVxoj0Vi8Yf6SP-oU
68
68
  sonolus/script/internal/introspection.py,sha256=9e_flldywaB5g1FdLnfLfQcL3s4nQ50E5iFlA-5FF_w,558
69
69
  sonolus/script/internal/native.py,sha256=Iib3iqt9OfSnuOUGa9L9jMNDNuApQDnZd0vNKOk52hE,1392
70
70
  sonolus/script/internal/value.py,sha256=ftmxr228XRSt2KNsR8KsXMw7vDP1jdwKEMb1PE0bpCA,4214
71
- sonolus_py-0.1.0.dist-info/METADATA,sha256=zzMbe5Hz2hBW-KVAwX1F62FUjkoxXT-YNTww8jDpegw,238
72
- sonolus_py-0.1.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
73
- sonolus_py-0.1.0.dist-info/entry_points.txt,sha256=oTYspY_b7SA8TptEMTDxh4-Aj-ZVPnYC9f1lqH6s9G4,54
74
- sonolus_py-0.1.0.dist-info/licenses/LICENSE,sha256=AhIgObMNjnAgjfJIea2c-0PDItKwP71hg4WFVAKh1ew,1088
75
- sonolus_py-0.1.0.dist-info/RECORD,,
71
+ sonolus_py-0.1.1.dist-info/METADATA,sha256=_j0JWT-xpmus8h125yO13zTQWk3dSuETUgP0ZbrGejI,238
72
+ sonolus_py-0.1.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
73
+ sonolus_py-0.1.1.dist-info/entry_points.txt,sha256=oTYspY_b7SA8TptEMTDxh4-Aj-ZVPnYC9f1lqH6s9G4,54
74
+ sonolus_py-0.1.1.dist-info/licenses/LICENSE,sha256=AhIgObMNjnAgjfJIea2c-0PDItKwP71hg4WFVAKh1ew,1088
75
+ sonolus_py-0.1.1.dist-info/RECORD,,