-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
A004 Preview Mode ExceptionGroup import in pre-3.11 #13037
Comments
I feel like this is a bug, so astral-sh/ruff#13037 is tracking this.
This makes sense to me, but we should only allow the use of |
I'm quite hesistant to add the infrastructure to Ruff to support detecting which
|
I think that using |
Getting
A004 Import BaseExceptionGroup is shadowing a Python builtin
andExceptionGroup
errors raised in this case:I would argue that this should not be the case.
BaseExceptionGroup
andExceptionGroup
do not exist in python versions prior to 3.11, and using theexceptiongroup
package is commonly used for backwards compatibility.Using ruff preview mode v0.6.1
The text was updated successfully, but these errors were encountered: