-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
F821 false positive when using ExceptionGroup #13255
Comments
seems like a regression from #3167 |
Do you have a minimum Python version set, in your |
maybe it is another issue but for me it fails finding I think the problem comes from here: https://github.com/astral-sh/ruff/pull/13172/files/de081b67c3072829c21cf8176a96baef64793ba7#diff-a5297ef4a78229f14881c57e472a6a79dc17e6a5a9244a676dfa6276d10f0dab
related PR: #13172 |
@bonastreyair could you share your configuration? You may need to make a whitespace change for the errors to show up |
I started having similar problems, also with anext() and aiter(). Project.toml: https://github.com/bartfeenstra/betty/blob/0.4.x/pyproject.toml Let me know if you need more details :) |
Found my problem. |
Can we reopen this? I still have this problem, with a single root configuration file:
|
The fix is to specify the |
|
@bartfeenstra I don't think ruff picks up the |
That makes sense! I'll give that a try shortly. Thank you! |
version: ruff 0.6.4, Python 3.11.6
command:
ruff check --isolated example.py
when using built-in
ExceptionGroup
ruff raises F821
The text was updated successfully, but these errors were encountered: