mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 08:25:01 -05:00
Remove mypy overrides for `tests.test_application` (#13421)
This commit is contained in:
1 parent
7d4528b17a
commit
d066c2be73
2 files changed
+3
-3
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user