haiway 0.7.1__tar.gz → 0.7.2__tar.gz

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.
Files changed (51) hide show
  1. {haiway-0.7.1/src/haiway.egg-info → haiway-0.7.2}/PKG-INFO +1 -1
  2. {haiway-0.7.1 → haiway-0.7.2}/pyproject.toml +1 -1
  3. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/structure.py +5 -5
  4. {haiway-0.7.1 → haiway-0.7.2/src/haiway.egg-info}/PKG-INFO +1 -1
  5. {haiway-0.7.1 → haiway-0.7.2}/LICENSE +0 -0
  6. {haiway-0.7.1 → haiway-0.7.2}/README.md +0 -0
  7. {haiway-0.7.1 → haiway-0.7.2}/setup.cfg +0 -0
  8. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/__init__.py +0 -0
  9. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/__init__.py +0 -0
  10. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/access.py +0 -0
  11. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/disposables.py +0 -0
  12. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/metrics.py +0 -0
  13. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/state.py +0 -0
  14. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/tasks.py +0 -0
  15. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/types.py +0 -0
  16. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/__init__.py +0 -0
  17. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/asynchrony.py +0 -0
  18. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/caching.py +0 -0
  19. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/retries.py +0 -0
  20. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/throttling.py +0 -0
  21. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/timeouted.py +0 -0
  22. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/tracing.py +0 -0
  23. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/py.typed +0 -0
  24. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/__init__.py +0 -0
  25. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/attributes.py +0 -0
  26. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/path.py +0 -0
  27. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/requirement.py +0 -0
  28. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/validation.py +0 -0
  29. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/types/__init__.py +0 -0
  30. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/types/frozen.py +0 -0
  31. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/types/missing.py +0 -0
  32. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/__init__.py +0 -0
  33. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/always.py +0 -0
  34. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/env.py +0 -0
  35. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/immutable.py +0 -0
  36. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/logs.py +0 -0
  37. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/mimic.py +0 -0
  38. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/noop.py +0 -0
  39. {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/queue.py +0 -0
  40. {haiway-0.7.1 → haiway-0.7.2}/src/haiway.egg-info/SOURCES.txt +0 -0
  41. {haiway-0.7.1 → haiway-0.7.2}/src/haiway.egg-info/dependency_links.txt +0 -0
  42. {haiway-0.7.1 → haiway-0.7.2}/src/haiway.egg-info/requires.txt +0 -0
  43. {haiway-0.7.1 → haiway-0.7.2}/src/haiway.egg-info/top_level.txt +0 -0
  44. {haiway-0.7.1 → haiway-0.7.2}/tests/test_async_queue.py +0 -0
  45. {haiway-0.7.1 → haiway-0.7.2}/tests/test_attribute_path.py +0 -0
  46. {haiway-0.7.1 → haiway-0.7.2}/tests/test_auto_retry.py +0 -0
  47. {haiway-0.7.1 → haiway-0.7.2}/tests/test_cache.py +0 -0
  48. {haiway-0.7.1 → haiway-0.7.2}/tests/test_context.py +0 -0
  49. {haiway-0.7.1 → haiway-0.7.2}/tests/test_state.py +0 -0
  50. {haiway-0.7.1 → haiway-0.7.2}/tests/test_streaming.py +0 -0
  51. {haiway-0.7.1 → haiway-0.7.2}/tests/test_timeout.py +0 -0
@@ -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
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  name = "haiway"
7
7
  description = "Framework for dependency injection and state management within structured concurrency model."
8
- version = "0.7.1"
8
+ version = "0.7.2"
9
9
  readme = "README.md"
10
10
  maintainers = [
11
11
  { name = "Kacper Kaliński", email = "kacper.kalinski@miquido.com" },
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes