Skip to content

Commit

Permalink
fix: add unsubscribe method to AutorunReturnType protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
sassanh committed Apr 23, 2024
1 parent 5f16508 commit 6a42756
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ nosetests.xml
coverage.xml
*.cover
.hypothesis/
tests/**/results/**/*.mismatch.json
tests/**/results/**/*.mismatch.jsonc

# Translations
*.mo
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.14.3

- fix: add `unsubscribe` method to `AutorunReturnType` protocol

## Version 0.14.2

- refactor: middleware functions can now return `None` to cancel an action or event
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-redux"
version = "0.14.2"
version = "0.14.3"
description = "Redux implementation for Python"
authors = ["Sassan Haradji <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 2 additions & 0 deletions redux/basic_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def subscribe(
keep_ref: bool | None = None,
) -> Callable[[], None]: ...

def unsubscribe(self: AutorunReturnType) -> None: ...


class EventSubscriber(Protocol):
def __call__(
Expand Down

0 comments on commit 6a42756

Please sign in to comment.