haiway 0.7.1__py3-none-any.whl → 0.7.2__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.
haiway/state/structure.py CHANGED
@@ -91,7 +91,7 @@ class StateMeta(type):
91
91
  ),
92
92
  )
93
93
 
94
- state_type.__PARAMETERS__ = type_parameters # pyright: ignore[reportAttributeAccessIssue]
94
+ state_type.__TYPE_PARAMETERS__ = type_parameters # pyright: ignore[reportAttributeAccessIssue]
95
95
  state_type.__ATTRIBUTES__ = attributes # pyright: ignore[reportAttributeAccessIssue]
96
96
  state_type.__slots__ = frozenset(attributes.keys()) # pyright: ignore[reportAttributeAccessIssue]
97
97
  state_type.__match_args__ = state_type.__slots__ # pyright: ignore[reportAttributeAccessIssue]
@@ -139,7 +139,7 @@ class StateMeta(type):
139
139
  # then check if we are parametrized
140
140
  checked_parameters: Mapping[str, Any] | None = getattr(
141
141
  self,
142
- "__PARAMETERS__",
142
+ "__TYPE_PARAMETERS__",
143
143
  None,
144
144
  )
145
145
  if checked_parameters is None:
@@ -152,7 +152,7 @@ class StateMeta(type):
152
152
  # we can verify all of the attributes to check if we have common base
153
153
  available_parameters: Mapping[str, Any] | None = getattr(
154
154
  subclass,
155
- "__PARAMETERS__",
155
+ "__TYPE_PARAMETERS__",
156
156
  None,
157
157
  )
158
158
 
@@ -204,7 +204,7 @@ class State(metaclass=StateMeta):
204
204
 
205
205
  _: ClassVar[Self]
206
206
  __IMMUTABLE__: ClassVar[EllipsisType] = ...
207
- __PARAMETERS__: ClassVar[Mapping[str, Any] | None] = None
207
+ __TYPE_PARAMETERS__: ClassVar[Mapping[str, Any] | None] = None
208
208
  __ATTRIBUTES__: ClassVar[dict[str, StateAttribute[Any]]]
209
209
 
210
210
  @classmethod
@@ -213,7 +213,7 @@ class State(metaclass=StateMeta):
213
213
  type_argument: tuple[type[Any], ...] | type[Any],
214
214
  ) -> type[Self]:
215
215
  assert Generic in cls.__bases__, "Can't specialize non generic type!" # nosec: B101
216
- assert cls.__PARAMETERS__ is None, "Can't specialize already specialized type!" # nosec: B101
216
+ assert cls.__TYPE_PARAMETERS__ is None, "Can't specialize already specialized type!" # nosec: B101
217
217
 
218
218
  type_arguments: tuple[type[Any], ...]
219
219
  match type_argument:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: haiway
3
- Version: 0.7.1
3
+ Version: 0.7.2
4
4
  Summary: Framework for dependency injection and state management within structured concurrency model.
5
5
  Maintainer-email: Kacper Kaliński <kacper.kalinski@miquido.com>
6
6
  License: MIT License
@@ -18,7 +18,7 @@ haiway/state/__init__.py,sha256=emTuwGFn7HyjyTJ_ass69J5jQIA7_WHO4teZz_dR05Y,355
18
18
  haiway/state/attributes.py,sha256=iQ7TJHnT3hlcYwKcxchXE56zU8WbOTJZhsVn_HocXBc,22903
19
19
  haiway/state/path.py,sha256=4vh-fYQv8_xRWjS0ErMQslKDWRI6-KVECAr8JhYk0UY,17503
20
20
  haiway/state/requirement.py,sha256=3iQqzp5Q7w6y5uClamJGH7S5Hib9pciuTAV27PP5lS8,6161
21
- haiway/state/structure.py,sha256=dqLXUJPnaQqdRxbNwtGgUqGNCA8EDPj16M3Ob_sEz5U,11837
21
+ haiway/state/structure.py,sha256=KvWC9_gE9pjtyUAzcFnQ12K8SyBqwbdPK_z8D2xzqDs,11862
22
22
  haiway/state/validation.py,sha256=n5cHcJTbv3Zf-qs05yzuLJIMBReV_4yYVwcH6IL58N0,13836
23
23
  haiway/types/__init__.py,sha256=00Ulp2BxcIWm9vWXKQPodpFEwE8hpqj6OYgrNxelp5s,252
24
24
  haiway/types/frozen.py,sha256=CZhFCXnWAKEhuWSfILxA8smfdpMd5Ku694ycfLh98R8,76
@@ -31,8 +31,8 @@ haiway/utils/logs.py,sha256=oDsc1ZdqKDjlTlctLbDcp9iX98Acr-1tdw-Pyg3DElo,1577
31
31
  haiway/utils/mimic.py,sha256=BkVjTVP2TxxC8GChPGyDV6UXVwJmiRiSWeOYZNZFHxs,1828
32
32
  haiway/utils/noop.py,sha256=qgbZlOKWY6_23Zs43OLukK2HagIQKRyR04zrFVm5rWI,344
33
33
  haiway/utils/queue.py,sha256=oQ3GXCJ-PGNtMEr6EPdgqAvYZoj8lAa7Z2drBKBEoBM,2345
34
- haiway-0.7.1.dist-info/LICENSE,sha256=GehQEW_I1pkmxkkj3NEa7rCTQKYBn7vTPabpDYJlRuo,1063
35
- haiway-0.7.1.dist-info/METADATA,sha256=XacjUXNqPQaTSoCxEcqcOcGgjAGr6uxBguhLwrEaIMM,3898
36
- haiway-0.7.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
37
- haiway-0.7.1.dist-info/top_level.txt,sha256=_LdXVLzUzgkvAGQnQJj5kQfoFhpPW6EF4Kj9NapniLg,7
38
- haiway-0.7.1.dist-info/RECORD,,
34
+ haiway-0.7.2.dist-info/LICENSE,sha256=GehQEW_I1pkmxkkj3NEa7rCTQKYBn7vTPabpDYJlRuo,1063
35
+ haiway-0.7.2.dist-info/METADATA,sha256=j-NP-HPcbExPmgEs976hNrlmkmTiyFxgOVjxIRQS00w,3898
36
+ haiway-0.7.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
37
+ haiway-0.7.2.dist-info/top_level.txt,sha256=_LdXVLzUzgkvAGQnQJj5kQfoFhpPW6EF4Kj9NapniLg,7
38
+ haiway-0.7.2.dist-info/RECORD,,
File without changes