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.
- {haiway-0.7.1/src/haiway.egg-info → haiway-0.7.2}/PKG-INFO +1 -1
- {haiway-0.7.1 → haiway-0.7.2}/pyproject.toml +1 -1
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/structure.py +5 -5
- {haiway-0.7.1 → haiway-0.7.2/src/haiway.egg-info}/PKG-INFO +1 -1
- {haiway-0.7.1 → haiway-0.7.2}/LICENSE +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/README.md +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/setup.cfg +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/__init__.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/__init__.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/access.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/disposables.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/metrics.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/state.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/tasks.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/context/types.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/__init__.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/asynchrony.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/caching.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/retries.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/throttling.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/timeouted.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/helpers/tracing.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/py.typed +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/__init__.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/attributes.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/path.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/requirement.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/state/validation.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/types/__init__.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/types/frozen.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/types/missing.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/__init__.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/always.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/env.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/immutable.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/logs.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/mimic.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/noop.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway/utils/queue.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway.egg-info/SOURCES.txt +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway.egg-info/dependency_links.txt +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway.egg-info/requires.txt +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/src/haiway.egg-info/top_level.txt +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/tests/test_async_queue.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/tests/test_attribute_path.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/tests/test_auto_retry.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/tests/test_cache.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/tests/test_context.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/tests/test_state.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/tests/test_streaming.py +0 -0
- {haiway-0.7.1 → haiway-0.7.2}/tests/test_timeout.py +0 -0
@@ -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.
|
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.
|
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
|
-
"
|
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
|
-
"
|
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
|
-
|
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.
|
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:
|
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
|
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
|
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
|