-
Notifications
You must be signed in to change notification settings - Fork 53
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
Undefined name anext
Ruff(F821)
#616
Comments
Thanks for providing the details. Can you specify what the issue that you're facing here? I'm unable to infer that based on the information that you've provided. |
anext is a python3 builtin (since 3.10) https://docs.python.org/3/library/functions.html#anext |
Can you try it with a recent Ruff version? It doesn't occur in it: https://play.ruff.rs/b6e9c140-0f81-40d3-bfd5-84e80422ff8b |
Well, specifying |
anext
pyproject.toml
andsettings.json
).tuff.toml
pyproject.toml
The current Ruff and VS Code extension versions (
ruff --version
).ruff 0.1.15
VS-Code plugin v2024.48.0
A description of your environment (e.g., operating system, Python version, etc.).
python3.11.9 / devcontainer mcr.microsoft.com/devcontainers/python:1-3.11-bookworm
Workaround
Turning off ruff as a linter, and only use it for formatting.
The text was updated successfully, but these errors were encountered: