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
$ python3 foo.py Traceback (most recent call last): File "foo.py", line 5, in <module> datetime(1, 2, 3)TypeError: 'module' object is not callable. Did you mean: 'datetime.datetime(...)'?
The text was updated successfully, but these errors were encountered:
If you have a module and a symbol of the same name, https://docs.astral.sh/ruff/rules/redefined-while-unused/ may result in broken code.
Using version: 0.3.2
Repro
$ ruff foo.py --fix
Expected
The first import (shadowed) should be removed.
Observed
The text was updated successfully, but these errors were encountered: