summaryrefslogtreecommitdiff
path: root/sphinx/testing/fixtures.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-22 22:05:38 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-04 15:14:51 +0900
commitdc2b153835af985c1bd940aa4116b78bf248b6e0 (patch)
tree29383d6007d2f13c517ae4646e639362017aa9d4 /sphinx/testing/fixtures.py
parent498fa379efe5b6b106c8d3eb56041164cdc8bab3 (diff)
downloadsphinx-git-dc2b153835af985c1bd940aa4116b78bf248b6e0.tar.gz
Update type annotations
Diffstat (limited to 'sphinx/testing/fixtures.py')
-rw-r--r--sphinx/testing/fixtures.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/sphinx/testing/fixtures.py b/sphinx/testing/fixtures.py
index 3e75637ea..76ed154fd 100644
--- a/sphinx/testing/fixtures.py
+++ b/sphinx/testing/fixtures.py
@@ -22,16 +22,19 @@ from six import StringIO, string_types
from . import util
if False:
- from typing import Dict, Union # NOQA
+ # For type annotation
+ from typing import Any, Dict, Union # NOQA
@pytest.fixture(scope='session')
def rootdir():
+ # type: () -> None
return None
@pytest.fixture
def app_params(request, test_params, shared_result, sphinx_test_tempdir, rootdir):
+ # type: (Any, Any, Any, Any, Any) -> None
"""
parameters that is specified by 'pytest.mark.sphinx' for
sphinx.application.Sphinx initialization
@@ -155,7 +158,7 @@ def make_app(test_params, monkeypatch):
app_ = util.SphinxTestApp(*args, **kwargs) # type: Union[util.SphinxTestApp, util.SphinxTestAppWrapperForSkipBuilding] # NOQA
apps.append(app_)
if test_params['shared_result']:
- app_ = util.SphinxTestAppWrapperForSkipBuilding(app_)
+ app_ = util.SphinxTestAppWrapperForSkipBuilding(app_) # type: ignore
return app_
yield make