Skip to content

Commit 1a69059

Browse files
Remove mypy overrides for tests/test_util/test_util_display.py (#13583)
1 parent 2992f31 commit 1a69059

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ module = [
286286
"tests.test_transforms.test_transforms_post_transforms_images",
287287
"tests.test_transforms.test_transforms_reorder_nodes",
288288
# tests/test_util
289-
"tests.test_util.test_util_display",
290289
"tests.test_util.test_util_docutils",
291290
# tests/test_writers
292291
"tests.test_writers.test_docutilsconf",

tests/test_util/test_util_display.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ def test_status_iterator_length_0(app: SphinxTestApp) -> None:
4141

4242

4343
@pytest.mark.sphinx('dummy', testroot='root')
44-
def test_status_iterator_verbosity_0(app, monkeypatch):
44+
def test_status_iterator_verbosity_0(
45+
app: SphinxTestApp, monkeypatch: pytest.MonkeyPatch
46+
) -> None:
4547
monkeypatch.setenv('FORCE_COLOR', '1')
4648
logging.setup(app, app.status, app.warning)
4749

@@ -59,7 +61,9 @@ def test_status_iterator_verbosity_0(app, monkeypatch):
5961

6062

6163
@pytest.mark.sphinx('dummy', testroot='root')
62-
def test_status_iterator_verbosity_1(app, monkeypatch):
64+
def test_status_iterator_verbosity_1(
65+
app: SphinxTestApp, monkeypatch: pytest.MonkeyPatch
66+
) -> None:
6367
monkeypatch.setenv('FORCE_COLOR', '1')
6468
logging.setup(app, app.status, app.warning)
6569

@@ -107,7 +111,7 @@ def test_progress_message(app: SphinxTestApp) -> None:
107111

108112
# decorator
109113
@progress_message('testing')
110-
def func():
114+
def func() -> None:
111115
logger.info('in func ', nonl=True)
112116

113117
func()

0 commit comments

Comments
 (0)