Skip to content

Preserve underlying exception traceback on Err.unwrap - #4

Merged
katunilya merged 1 commit into
mainfrom
3-keep-underlying-exception-traceback-on-errunwrap-if-available
Sep 12, 2026
Merged

katunilya merged 1 commit into
mainfrom
3-keep-underlying-exception-traceback-on-errunwrap-if-available

Conversation

@katunilya

Copy link
Copy Markdown
Owner

Closes #3

Summary:

  • chain ErrUnwrapError from stored BaseException values
  • retain existing behavior for non-exception Err values
  • cover synchronous and FutureResult unwrap paths, including BaseException subclasses

Verification:

  • 44 tests passed with 100% coverage
  • Ruff check and format passed
  • Ty check passed with three pre-existing unused-ignore warnings
  • MyPy passed

@katunilya katunilya linked an issue Sep 12, 2026 that may be closed by this pull request
@katunilya
katunilya merged commit a04e01a into main Sep 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep underlying exception traceback on Err.unwrap if available

1 participant