Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ExceptionGroup subclasses bypass the existing standard-library fallback because the guard compares the exact class name. Their formatted output loses nested exception details and keeps only the outer message and count.
Check against the builtin ExceptionGroup type, with an empty-tuple fallback when that builtin is unavailable. Keep the existing standard traceback rendering. The appended public-API tests cover subclass instances, exc_info tuples and a traceback-bearing subclass, plus ordinary group and exception controls. This extends the fallback from #66; it does not change direct BaseException dispatch in #77.
On Python 3.14.7/macOS arm64, the same final fixture gives 3 failed/11 passed with pristine code and 14 passed with the fix. The CI fatal flake8 selection, syntax and diff checks pass. The advisory
--exit-zerolint reports 238 findings on both versions, with none in the added test lines. Older Python versions and other platforms were not run; group tests skip when the builtin is unavailable.