python-redux 0.20.0__tar.gz → 0.20.1__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.
- {python_redux-0.20.0 → python_redux-0.20.1}/PKG-INFO +1 -1
- {python_redux-0.20.0 → python_redux-0.20.1}/pyproject.toml +2 -2
- {python_redux-0.20.0 → python_redux-0.20.1}/redux/_version.py +2 -2
- {python_redux-0.20.0 → python_redux-0.20.1}/redux/combine_reducers.py +13 -18
- {python_redux-0.20.0 → python_redux-0.20.1}/.gitignore +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/LICENSE +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/README.md +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux/__init__.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux/autorun.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux/basic_types.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux/main.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux/py.typed +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux/serialization_mixin.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux/side_effect_runner.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/__init__.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/__init__.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/event_loop.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/monitor.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/snapshot.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/store.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/wait_for.py +0 -0
- {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/plugin.py +0 -0
|
@@ -13,8 +13,8 @@ dependencies = ["python-immutable >= 1.1.1", "python-strtobool >= 1.0.0"]
|
|
|
13
13
|
[tool.uv]
|
|
14
14
|
dev-dependencies = [
|
|
15
15
|
"poethepoet >= 0.24.4",
|
|
16
|
-
"pyright >= 1.1.
|
|
17
|
-
"ruff >= 0.
|
|
16
|
+
"pyright >= 1.1.396",
|
|
17
|
+
"ruff >= 0.9.10",
|
|
18
18
|
"pytest >= 8.1.1",
|
|
19
19
|
"pytest-cov >= 4.1.0",
|
|
20
20
|
"pytest-timeout >= 2.3.1",
|
|
@@ -5,7 +5,7 @@ import copy
|
|
|
5
5
|
import functools
|
|
6
6
|
import operator
|
|
7
7
|
import uuid
|
|
8
|
-
from dataclasses import
|
|
8
|
+
from dataclasses import fields
|
|
9
9
|
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
10
10
|
|
|
11
11
|
from immutable import make_immutable
|
|
@@ -74,18 +74,16 @@ def combine_reducers(
|
|
|
74
74
|
)
|
|
75
75
|
state = state_class(
|
|
76
76
|
_id=state._id, # noqa: SLF001
|
|
77
|
-
**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
),
|
|
77
|
+
**{
|
|
78
|
+
key_: (
|
|
79
|
+
reducer_result.state
|
|
80
|
+
if is_complete_reducer_result(reducer_result)
|
|
81
|
+
else reducer_result
|
|
82
|
+
)
|
|
83
|
+
if key == key_
|
|
84
|
+
else getattr(state, key_)
|
|
85
|
+
for key_ in reducers
|
|
86
|
+
},
|
|
89
87
|
)
|
|
90
88
|
result_actions += (
|
|
91
89
|
reducer_result.actions or []
|
|
@@ -109,11 +107,8 @@ def combine_reducers(
|
|
|
109
107
|
cast(Any, state_class).__dataclass_fields__ = fields_copy
|
|
110
108
|
|
|
111
109
|
state = state_class(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
for key_ in asdict(state)
|
|
115
|
-
if key_ != key
|
|
116
|
-
},
|
|
110
|
+
_id=state._id, # noqa: SLF001
|
|
111
|
+
**{key_: getattr(state, key_) for key_ in reducers if key_ != key},
|
|
117
112
|
)
|
|
118
113
|
|
|
119
114
|
reducers_results = {
|
|
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
|