File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,6 @@ ignore_missing_imports = true
245
245
[[tool .mypy .overrides ]]
246
246
module = [
247
247
# tests/
248
- " tests.test_application" ,
249
248
" tests.test_highlighting" ,
250
249
" tests.test_project" ,
251
250
" tests.test_versioning" ,
Original file line number Diff line number Diff line change 20
20
21
21
if TYPE_CHECKING :
22
22
import os
23
+ from typing import Any
23
24
24
25
25
26
def test_instantiation (
@@ -50,7 +51,7 @@ def test_instantiation(
50
51
51
52
@pytest .mark .sphinx ('html' , testroot = 'root' )
52
53
def test_events (app : SphinxTestApp ) -> None :
53
- def empty ():
54
+ def empty () -> None :
54
55
pass
55
56
56
57
with pytest .raises (ExtensionError ) as excinfo :
@@ -62,7 +63,7 @@ def empty():
62
63
app .add_event ('my_event' )
63
64
assert "Event 'my_event' already present" in str (excinfo .value )
64
65
65
- def mock_callback (a_app , * args ) :
66
+ def mock_callback (a_app : SphinxTestApp , * args : Any ) -> str :
66
67
assert a_app is app
67
68
assert emit_args == args
68
69
return 'ret'
You can’t perform that action at this time.
0 commit comments