rewrite as-import as regular import if name is equal
spaceone opened this issue · comments
Florian Best commented
pyupgrade rewrites:
-from six.moves import cPickle as pickle
+import pickle as pickle
expected:
-from six.moves import cPickle as pickle
+import pickle
Anthony Sottile commented
annoyingly this probably can't be automated because mypy treats import A as A
and from A import B as B
specially