Skip to content

Commit 0b05b45

Browse files
committed
mypy: test_annotate.py test_arcs.py test_collector.py
1 parent 2090f79 commit 0b05b45

File tree

4 files changed

+102
-102
lines changed

4 files changed

+102
-102
lines changed

tests/test_annotate.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class AnnotationGoldTest(CoverageTest):
1313
"""Test the annotate feature with gold files."""
1414

15-
def make_multi(self):
15+
def make_multi(self) -> None:
1616
"""Make a few source files we need for the tests."""
1717
self.make_file("multi.py", """\
1818
import a.a
@@ -36,23 +36,23 @@ def b(x):
3636
print(msg)
3737
""")
3838

39-
def test_multi(self):
39+
def test_multi(self) -> None:
4040
self.make_multi()
4141
cov = coverage.Coverage()
4242
self.start_import_stop(cov, "multi")
4343
cov.annotate()
4444

4545
compare(gold_path("annotate/multi"), ".", "*,cover")
4646

47-
def test_annotate_dir(self):
47+
def test_annotate_dir(self) -> None:
4848
self.make_multi()
4949
cov = coverage.Coverage(source=["."])
5050
self.start_import_stop(cov, "multi")
5151
cov.annotate(directory="out_anno_dir")
5252

5353
compare(gold_path("annotate/anno_dir"), "out_anno_dir", "*,cover")
5454

55-
def test_encoding(self):
55+
def test_encoding(self) -> None:
5656
self.make_file("utf8.py", """\
5757
# -*- coding: utf-8 -*-
5858
# This comment has an accent: é
@@ -64,7 +64,7 @@ def test_encoding(self):
6464
cov.annotate()
6565
compare(gold_path("annotate/encodings"), ".", "*,cover")
6666

67-
def test_white(self):
67+
def test_white(self) -> None:
6868
self.make_file("white.py", """\
6969
# A test case sent to me by Steve White
7070
@@ -106,7 +106,7 @@ def h(x):
106106
cov.annotate()
107107
compare(gold_path("annotate/white"), ".", "*,cover")
108108

109-
def test_missing_after_else(self):
109+
def test_missing_after_else(self) -> None:
110110
self.make_file("mae.py", """\
111111
def f(x):
112112
if x == 1:

0 commit comments

Comments
 (0)