Skip to content

Commit 87319c2

Browse files
authored
Remove double import (#11452)
The double import should be unnecessary because the bug it is talking about was fixed by #10550.
1 parent 9cbd210 commit 87319c2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mypy/report.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525
from mypy.defaults import REPORTER_NAMES
2626

2727
try:
28-
# mypyc doesn't properly handle import from of submodules that we
29-
# don't have stubs for, hence the hacky double import
30-
import lxml.etree # type: ignore # noqa: F401
31-
from lxml import etree
28+
from lxml import etree # type: ignore
3229
LXML_INSTALLED = True
3330
except ImportError:
3431
LXML_INSTALLED = False

0 commit comments

Comments
 (0)