Remove mypy overrides for `tests.test_application` (#13421)

This commit is contained in:
Adam Dangoor authored and GitHub committed 2025-03-21 16:18:52 +00:00
1 parent 7d4528b17a
commit d066c2be73
2 files changed
+3 -3

No files matched your search

-1
View File
@@ -245,7 +245,6 @@ ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
# tests/
"tests.test_application",
"tests.test_highlighting",
"tests.test_project",
"tests.test_versioning",
+3 -2
View File
@@ -20,6 +20,7 @@ from sphinx.util import logging
if TYPE_CHECKING:
import os
from typing import Any
def test_instantiation(
@@ -50,7 +51,7 @@ def test_instantiation(
@pytest.mark.sphinx('html', testroot='root')
def test_events(app: SphinxTestApp) -> None:
def empty():
def empty() -> None:
pass
with pytest.raises(ExtensionError) as excinfo:
@@ -62,7 +63,7 @@ def test_events(app: SphinxTestApp) -> None:
app.add_event('my_event')
assert "Event 'my_event' already present" in str(excinfo.value)
def mock_callback(a_app, *args):
def mock_callback(a_app: SphinxTestApp, *args: Any) -> str:
assert a_app is app
assert emit_args == args
return 'ret'