Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseExceptionGroup initialized with non-base exceptions now return ExceptionGroup #13554

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jakkdl
Copy link

@jakkdl jakkdl commented Feb 27, 2025

fixes #12972, at the cost of breaking custom baseexceptiongroups that doesn't implement __new__


Deferred due to python/mypy#17251.

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@jakkdl
Copy link
Author

jakkdl commented Feb 27, 2025

hrm, hitting problems I don't remember getting previously. Will see if I can figure them out

@srittau
Copy link
Collaborator

srittau commented Feb 27, 2025

You need to keep __init__ as well.

@jakkdl
Copy link
Author

jakkdl commented Feb 28, 2025

You need to keep __init__ as well.

that's blocked by python/mypy#17251

@srittau srittau added the status: deferred Issue or PR deferred until some precondition is fixed label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: deferred Issue or PR deferred until some precondition is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BaseExceptionGroup should return ExceptionGroup if initialized with non-base exceptions
2 participants