You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The unused import is not removed. Now, I assume this is special cased because __init__.py is special. It would be nice if there a way to bypass the special case anyway though. For now, though, I think I'll get my code out of __init__.py...
As a stopgap, it would be nice if it said something about why the import was not fixed here, this was very difficult to Google for why it was not fixing it since everyone claimed unused imports would be removed by this.
Version
ruff 0.9.10
The text was updated successfully, but these errors were encountered:
This seems to work for me, even for __init__.py, which was a pleasant surprise since there are several existing issues around F401 for __init__.py files.
Summary
Repro:
init.py
a.py
The unused import is not removed. Now, I assume this is special cased because
__init__.py
is special. It would be nice if there a way to bypass the special case anyway though. For now, though, I think I'll get my code out of__init__.py
...As a stopgap, it would be nice if it said something about why the import was not fixed here, this was very difficult to Google for why it was not fixing it since everyone claimed unused imports would be removed by this.
Version
ruff 0.9.10
The text was updated successfully, but these errors were encountered: