Fix multi-segment import removal (#480)

This commit is contained in:
Charlie Marsh
2022-10-26 16:43:55 -04:00
committed by GitHub
parent 16c2e3a995
commit c00bd489f1
6 changed files with 93 additions and 29 deletions

View File

@@ -86,5 +86,3 @@ else:
CustomInt: TypeAlias = "np.int8 | np.int16"
from foo.bar import baz

5
resources/test/fixtures/F401_5.py vendored Normal file
View File

@@ -0,0 +1,5 @@
"""Test: removal of multi-segment and aliases imports."""
from a.b import c
from d.e import f as g
import h.i
import j.k as l