Skip to content

Commit 84e9bba

Browse files
Jdwashin9Jdwashin9
authored andcommitted
removing unused type: ignores 1812
1 parent 06f6b73 commit 84e9bba

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

mypy/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from mypy.version import __version__
2727

2828
try:
29-
from lxml import etree # type: ignore[import-untyped]
29+
from lxml import etree
3030

3131
LXML_INSTALLED = True
3232
except ImportError:

mypy/test/testcmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
)
2121

2222
try:
23-
import lxml # type: ignore[import-untyped]
23+
import lxml
2424
except ImportError:
2525
lxml = None
2626

mypy/test/testreports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from mypy.test.helpers import Suite, assert_equal
99

1010
try:
11-
import lxml # type: ignore[import-untyped]
11+
import lxml
1212
except ImportError:
1313
lxml = None
1414

@@ -23,7 +23,7 @@ def test_get_line_rate(self) -> None:
2323

2424
@pytest.mark.skipif(lxml is None, reason="Cannot import lxml. Is it installed?")
2525
def test_as_xml(self) -> None:
26-
import lxml.etree as etree # type: ignore[import-untyped]
26+
import lxml.etree as etree
2727

2828
cobertura_package = CoberturaPackage("foobar")
2929
cobertura_package.covered_lines = 21

mypy/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ def copy_modified(
16561656
*,
16571657
variables: Bogus[Sequence[TypeVarLikeType]] = _dummy,
16581658
is_ellipsis_args: Bogus[bool] = _dummy,
1659-
imprecise_arg_kinds: Bogus[bool] = _dummy, # type: ignore
1659+
imprecise_arg_kinds: Bogus[bool] = _dummy,
16601660
) -> Parameters:
16611661
return Parameters(
16621662
arg_types=arg_types if arg_types is not _dummy else self.arg_types,

0 commit comments

Comments
 (0)