-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
N817 not correctly detecting from xml.etree import ElementTree as ET
#12940
Comments
Bug is documented here: astral-sh/ruff#12940
Thanks for reporting. This was fixed in 0.6.1. Can you try upgrading? |
Thanks! I saw the 0.6.1 upgrade after reporting and will do so as soon as my build completes |
@MichaReiser thanks for the quick turnaround! I've amended the bug report, as the I personally consider it low priority since I've just gone ahead and changed them to |
xml.etree.ElementTree
from xml.etree import ElementTree as ET
Ohh I see. Thanks for updating the issue and sorry for the oversight |
That was quick! Thank you! |
In ruff 0.6.1, this file:
causes N817 to trigger an error with the default ruff settings,even though the default value of
lint.flake8-import-conventions
contains that mapping and it's supposed to be ignored according to the docs.failed in 0.6.0 but is fixed in 0.6.1
The text was updated successfully, but these errors were encountered: