summaryrefslogtreecommitdiff
path: root/sphinx/testing/util.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-29 23:56:30 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-30 17:22:56 +0900
commitab184ac20d82d0546c21f33d2fdfbfb324078d56 (patch)
tree225b6c5f9904d8699332add3cb0939fb8be68ef2 /sphinx/testing/util.py
parent7a4bbf372a470700a1dfd96dd57054bb96b92fd3 (diff)
downloadsphinx-git-ab184ac20d82d0546c21f33d2fdfbfb324078d56.tar.gz
mypy: Enable disallow_incomplete_defs flag for type checking
Diffstat (limited to 'sphinx/testing/util.py')
-rw-r--r--sphinx/testing/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/testing/util.py b/sphinx/testing/util.py
index 1ba3237c4..a031b2ad2 100644
--- a/sphinx/testing/util.py
+++ b/sphinx/testing/util.py
@@ -47,7 +47,7 @@ def assert_startswith(thing: str, prefix: str) -> None:
assert False, '%r does not start with %r' % (thing, prefix)
-def assert_node(node: nodes.Node, cls: Any = None, xpath: str = "", **kwargs) -> None:
+def assert_node(node: nodes.Node, cls: Any = None, xpath: str = "", **kwargs: Any) -> None:
if cls:
if isinstance(cls, list):
assert_node(node, cls[0], xpath=xpath, **kwargs)
@@ -92,7 +92,7 @@ def etree_parse(path: str) -> Any:
class Struct:
- def __init__(self, **kwds) -> None:
+ def __init__(self, **kwds: Any) -> None:
self.__dict__.update(kwds)
@@ -165,7 +165,7 @@ class SphinxTestAppWrapperForSkipBuilding:
def __getattr__(self, name: str) -> Any:
return getattr(self.app, name)
- def build(self, *args, **kw) -> None:
+ def build(self, *args: Any, **kw: Any) -> None:
if not self.app.outdir.listdir(): # type: ignore
# if listdir is empty, do build.
self.app.build(*args, **kw)