refactor: Support suppressed type_comment (refs: #7152)

This commit is contained in:
Takeshi KOMIYA
2020-02-16 17:26:32 +09:00
parent 51b80ab121
commit 98d24464f1
2 changed files with 75 additions and 42 deletions

View File

@@ -508,7 +508,7 @@ def test_autodoc_typehints_signature(app):
' :module: target.typehints',
'',
'',
'.. py:function:: missing_attr(c: None, a: str, b: Optional[str] = None) -> None',
'.. py:function:: missing_attr(c, a: str, b: Optional[str] = None) -> str',
' :module: target.typehints',
''
]