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
from __future__ importannotationsimportosimportos.pathprint(os)
running autoflake 2.2.1 with --in-place --remove-all-unused-imports --expand-star-imports --remove-duplicate-keys --remove-unused-variables
Expected result:
from __future__ importannotationsimportosprint(os)
Actual result:
from __future__ importannotationsimportosimportos.pathprint(os)
With removed print(os) this works as expected - both imports are removed.
Giving the import its own symbol (ie. import os.path as op) also works as expected, and the line is removed.