Skip to content

Commit 6a42756

Browse files
committed
fix: add unsubscribe method to AutorunReturnType protocol
1 parent 5f16508 commit 6a42756

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ nosetests.xml
4545
coverage.xml
4646
*.cover
4747
.hypothesis/
48-
tests/**/results/**/*.mismatch.json
48+
tests/**/results/**/*.mismatch.jsonc
4949

5050
# Translations
5151
*.mo

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 0.14.3
4+
5+
- fix: add `unsubscribe` method to `AutorunReturnType` protocol
6+
37
## Version 0.14.2
48

59
- refactor: middleware functions can now return `None` to cancel an action or event

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-redux"
3-
version = "0.14.2"
3+
version = "0.14.3"
44
description = "Redux implementation for Python"
55
authors = ["Sassan Haradji <sassanh@gmail.com>"]
66
license = "Apache-2.0"

redux/basic_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ def subscribe(
169169
keep_ref: bool | None = None,
170170
) -> Callable[[], None]: ...
171171

172+
def unsubscribe(self: AutorunReturnType) -> None: ...
173+
172174

173175
class EventSubscriber(Protocol):
174176
def __call__(

0 commit comments

Comments
 (0)