summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r--tests/test_autodoc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index 747746478..fca3c2b9e 100644
--- a/tests/test_autodoc.py
+++ b/tests/test_autodoc.py
@@ -1025,7 +1025,7 @@ def test_type_hints():
from sphinx.util.inspect import getargspec
try:
- from typing_test_data import f0, f1, f2, f3, f4, f5, f6, f7, f8
+ from typing_test_data import f0, f1, f2, f3, f4, f5, f6, f7, f8, f9
except (ImportError, SyntaxError):
raise SkipTest('Cannot import Python code with function annotations')
@@ -1061,3 +1061,6 @@ def test_type_hints():
# Tuple types
verify_arg_spec(f8, '(x: typing.Tuple[int, str],'
' y: typing.Tuple[int, ...]) -> None')
+
+ # Instance annotations
+ verify_arg_spec(f9, '(x: CustomAnnotation, y: 123) -> None')