Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## v8.1.1 - 2026-04-10

* Widened type hint for `ignore_exc_class` and `handle_exc_class` to `BaseException` to eliminate type errors for
handlers catching `KeyboardInterrupt` and such.


## v8.1.0 - 2026-03-20

* Added `verify_literal()` method to verify a value is a memger of a literal group (and narrow type)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "py-buzz"
version = "8.1.0"
version = "8.1.1"
description = "\"That's not flying, it's falling with style\": Exceptions with extras"
authors = [
{name = "Tucker Beck", email = "tucker.beck@gmail.com"}
Expand Down
8 changes: 4 additions & 4 deletions src/buzz/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ def handle_errors(
raise_exc_class: type[Exception] | None = Exception,
raise_args: Iterable[Any] | None = None,
raise_kwargs: Mapping[str, Any] | None = None,
handle_exc_class: type[Exception] | tuple[type[Exception], ...] = Exception,
ignore_exc_class: type[Exception] | tuple[type[Exception], ...] | None = None,
handle_exc_class: type[BaseException] | tuple[type[BaseException], ...] = Exception,
ignore_exc_class: type[BaseException] | tuple[type[BaseException], ...] | None = None,
do_finally: NoArgCallback | None = None,
do_except: DoExceptParamsCallback | None = None,
do_else: NoArgCallback | None = None,
Expand Down Expand Up @@ -579,8 +579,8 @@ async def handle_errors_async(
raise_exc_class: type[Exception] | None = Exception,
raise_args: Iterable[Any] | None = None,
raise_kwargs: Mapping[str, Any] | None = None,
handle_exc_class: type[Exception] | tuple[type[Exception], ...] = Exception,
ignore_exc_class: type[Exception] | tuple[type[Exception], ...] | None = None,
handle_exc_class: type[BaseException] | tuple[type[BaseException], ...] = Exception,
ignore_exc_class: type[BaseException] | tuple[type[BaseException], ...] | None = None,
do_finally: NoArgCallback | AsyncNoArgCallback | None = None,
do_except: DoExceptParamsCallback | AsyncDoExceptParamsCallback | None = None,
do_else: NoArgCallback | AsyncNoArgCallback | None = None,
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading