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.
Files changed (22) hide show
  1. {python_redux-0.20.0 → python_redux-0.20.1}/PKG-INFO +1 -1
  2. {python_redux-0.20.0 → python_redux-0.20.1}/pyproject.toml +2 -2
  3. {python_redux-0.20.0 → python_redux-0.20.1}/redux/_version.py +2 -2
  4. {python_redux-0.20.0 → python_redux-0.20.1}/redux/combine_reducers.py +13 -18
  5. {python_redux-0.20.0 → python_redux-0.20.1}/.gitignore +0 -0
  6. {python_redux-0.20.0 → python_redux-0.20.1}/LICENSE +0 -0
  7. {python_redux-0.20.0 → python_redux-0.20.1}/README.md +0 -0
  8. {python_redux-0.20.0 → python_redux-0.20.1}/redux/__init__.py +0 -0
  9. {python_redux-0.20.0 → python_redux-0.20.1}/redux/autorun.py +0 -0
  10. {python_redux-0.20.0 → python_redux-0.20.1}/redux/basic_types.py +0 -0
  11. {python_redux-0.20.0 → python_redux-0.20.1}/redux/main.py +0 -0
  12. {python_redux-0.20.0 → python_redux-0.20.1}/redux/py.typed +0 -0
  13. {python_redux-0.20.0 → python_redux-0.20.1}/redux/serialization_mixin.py +0 -0
  14. {python_redux-0.20.0 → python_redux-0.20.1}/redux/side_effect_runner.py +0 -0
  15. {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/__init__.py +0 -0
  16. {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/__init__.py +0 -0
  17. {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/event_loop.py +0 -0
  18. {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/monitor.py +0 -0
  19. {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/snapshot.py +0 -0
  20. {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/store.py +0 -0
  21. {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/fixtures/wait_for.py +0 -0
  22. {python_redux-0.20.0 → python_redux-0.20.1}/redux_pytest/plugin.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-redux
3
- Version: 0.20.0
3
+ Version: 0.20.1
4
4
  Summary: Redux implementation for Python
5
5
  Project-URL: homepage, https://github.com/sassanh/python-redux/
6
6
  Project-URL: repository, https://github.com/sassanh/python-redux/
@@ -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.376",
17
- "ruff >= 0.6.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",
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.20.0'
21
- __version_tuple__ = version_tuple = (0, 20, 0)
20
+ __version__ = version = '0.20.1'
21
+ __version_tuple__ = version_tuple = (0, 20, 1)
@@ -5,7 +5,7 @@ import copy
5
5
  import functools
6
6
  import operator
7
7
  import uuid
8
- from dataclasses import asdict, fields
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
- key_: (
80
- reducer_result.state
81
- if is_complete_reducer_result(reducer_result)
82
- else reducer_result
83
- )
84
- if key == key_
85
- else getattr(state, key_)
86
- for key_ in reducers
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
- key_: getattr(state, key_)
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