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

Replace MultiError with (Base)ExceptionGroup #2211

Closed
agronholm opened this issue Jan 16, 2022 · 0 comments · Fixed by #2213
Closed

Replace MultiError with (Base)ExceptionGroup #2211

agronholm opened this issue Jan 16, 2022 · 0 comments · Fixed by #2213

Comments

@agronholm
Copy link
Contributor

Now that PEP 654 has been accepted, and is implemented in the upcoming Python 3.11, and with the backport out, we should retire MultiError in favor of the standard (Base)ExceptionGroup exception(s).

@agronholm agronholm self-assigned this Jan 16, 2022
agronholm added a commit that referenced this issue Jan 16, 2022
agronholm added a commit that referenced this issue Jan 25, 2022
agronholm added a commit that referenced this issue Jan 25, 2022
paulo-raca added a commit to paulo-raca/fastapi that referenced this issue Oct 4, 2022
This avoids a deprecation error when using anyio/trio:

```
trio.TrioDeprecationWarning: trio.MultiError is deprecated since Trio 0.22.0; use BaseExceptionGroup (on Python 3.11 and later) or exceptiongroup.BaseExceptionGroup (earlier versions) instead (python-trio/trio#2211)
```

This "proper" fix depends on a new release of anyio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant