summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-01 13:38:32 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-03 01:18:38 +0900
commit20126433d6598a53eee0067bfb0ae641128b864f (patch)
tree79d013e5c0f42dbee8170ea74b4afbd061a4916d /tests/test_autodoc.py
parent2ed26b437744da564e456ed2adc8d50eee3b5166 (diff)
downloadsphinx-git-20126433d6598a53eee0067bfb0ae641128b864f.tar.gz
autodoc: Show type annotation for instance variables
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r--tests/test_autodoc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index c8ab55479..04768b638 100644
--- a/tests/test_autodoc.py
+++ b/tests/test_autodoc.py
@@ -1411,11 +1411,13 @@ def test_autodoc_typed_instance_variables(app):
' ',
' .. py:attribute:: Class.attr2',
' :module: target.typed_vars',
+ ' :type: int',
' :value: None',
' ',
' ',
' .. py:attribute:: Class.attr3',
' :module: target.typed_vars',
+ ' :type: int',
' :value: None',
' ',
' attr3',
@@ -1423,6 +1425,7 @@ def test_autodoc_typed_instance_variables(app):
' ',
' .. py:attribute:: Class.attr4',
' :module: target.typed_vars',
+ ' :type: int',
' :value: None',
' ',
' attr4',
@@ -1438,6 +1441,7 @@ def test_autodoc_typed_instance_variables(app):
'',
'.. py:data:: attr2',
' :module: target.typed_vars',
+ ' :type: str',
" :value: None",
'',
' attr2',