refs #2432 update for latest master

This commit is contained in:
shimizukawa 2016-10-19 01:08:07 +09:00
parent d1c6d3c45b
commit 021974ed94
2 changed files with 3 additions and 3 deletions

View File

@ -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, f9
from typing_test_data import f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10
except (ImportError, SyntaxError):
raise SkipTest('Cannot import Python code with function annotations')
@ -1066,4 +1066,4 @@ def test_type_hints():
' y: typing.Tuple[int, ...]) -> None')
# Instance annotations
verify_arg_spec(f9, '(x: CustomAnnotation, y: 123) -> None')
verify_arg_spec(f10, '(x: CustomAnnotation, y: 123) -> None')

View File

@ -56,5 +56,5 @@ class CustomAnnotation:
def __repr__(self):
return 'CustomAnnotation'
def f9(x: CustomAnnotation(), y: 123) -> None:
def f10(x: CustomAnnotation(), y: 123) -> None:
pass