summaryrefslogtreecommitdiff
path: root/sphinx/testing
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-03 00:43:39 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-03 01:11:06 +0900
commitfd73a169c7abe649aab2fcf12d192f44822bbef2 (patch)
tree5609270523a017b24181670103d5f23d4db2688c /sphinx/testing
parent8068cef267d771cd933316ba93b13665e8282c9d (diff)
downloadsphinx-git-fd73a169c7abe649aab2fcf12d192f44822bbef2.tar.gz
Fix annotations (minor fixes)
Diffstat (limited to 'sphinx/testing')
-rw-r--r--sphinx/testing/path.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/testing/path.py b/sphinx/testing/path.py
index 20430ff23..34cdee927 100644
--- a/sphinx/testing/path.py
+++ b/sphinx/testing/path.py
@@ -14,6 +14,7 @@ from six import text_type
if False:
# For type annotation
+ import builtins # NOQA
from typing import Any, Callable, IO, List # NOQA
from sphinx.util.typing import unicode # NOQA
@@ -166,7 +167,7 @@ class path(text_type):
return f.read()
def bytes(self):
- # type: () -> str
+ # type: () -> builtins.bytes
"""
Returns the bytes in the file.
"""