Skip to content

Commit d066c2b

Browse files
Remove mypy overrides for tests.test_application (#13421)
1 parent 7d4528b commit d066c2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ ignore_missing_imports = true
245245
[[tool.mypy.overrides]]
246246
module = [
247247
# tests/
248-
"tests.test_application",
249248
"tests.test_highlighting",
250249
"tests.test_project",
251250
"tests.test_versioning",

tests/test_application.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
if TYPE_CHECKING:
2222
import os
23+
from typing import Any
2324

2425

2526
def test_instantiation(
@@ -50,7 +51,7 @@ def test_instantiation(
5051

5152
@pytest.mark.sphinx('html', testroot='root')
5253
def test_events(app: SphinxTestApp) -> None:
53-
def empty():
54+
def empty() -> None:
5455
pass
5556

5657
with pytest.raises(ExtensionError) as excinfo:
@@ -62,7 +63,7 @@ def empty():
6263
app.add_event('my_event')
6364
assert "Event 'my_event' already present" in str(excinfo.value)
6465

65-
def mock_callback(a_app, *args):
66+
def mock_callback(a_app: SphinxTestApp, *args: Any) -> str:
6667
assert a_app is app
6768
assert emit_args == args
6869
return 'ret'

0 commit comments

Comments
 (0)