Skip to content

Commit 9b8dce6

Browse files
Remove mypy overrides for tests/test_builders/test_build_warnings.py (sphinx-doc#13771)
1 parent 641f32a commit 9b8dce6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ module = [
258258
"tests.test_builders.test_build_html_numfig",
259259
"tests.test_builders.test_build_html_toctree",
260260
"tests.test_builders.test_build_linkcheck",
261-
"tests.test_builders.test_build_warnings",
262261
# tests/test_directives
263262
"tests.test_directives.test_directive_code",
264263
"tests.test_directives.test_directives_no_typesetting",

tests/test_builders/test_build_warnings.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
from sphinx.errors import SphinxError
1313

1414
if TYPE_CHECKING:
15+
from collections.abc import Callable
16+
from pathlib import Path
17+
1518
from sphinx.testing.util import SphinxTestApp
1619

1720
ENV_WARNINGS = """\
@@ -117,7 +120,9 @@ def test_texinfo_warnings(app: SphinxTestApp) -> None:
117120
_check_warnings(warnings_exp, app.warning.getvalue())
118121

119122

120-
def test_uncacheable_config_warning(make_app, tmp_path):
123+
def test_uncacheable_config_warning(
124+
make_app: Callable[..., SphinxTestApp], tmp_path: Path
125+
) -> None:
121126
"""Test that an unpickleable config value raises a warning."""
122127
tmp_path.joinpath('conf.py').write_text(
123128
"""\

0 commit comments

Comments
 (0)