summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-04-27 21:54:17 +0900
committerGitHub <noreply@github.com>2020-04-27 21:54:17 +0900
commit7888600f96bab96d76b822e4b64bebbf6c88fdfa (patch)
tree24b299a41fd740cfd7942e479b8f2651b17c9494 /tests/test_autodoc.py
parent4eafda8588ed8f18ed016e34edf1c4f4ac4f9200 (diff)
parentb7ce4a4c13bf913eb97bed0c89ac31019d12a407 (diff)
downloadsphinx-git-7888600f96bab96d76b822e4b64bebbf6c88fdfa.tar.gz
Merge pull request #7564 from eric-wieser/fix-missing-__annotations__
autodoc: Fix a logic error that causes annotations not to be shown for descriptors
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r--tests/test_autodoc.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index 3907e3465..7cdb074d2 100644
--- a/tests/test_autodoc.py
+++ b/tests/test_autodoc.py
@@ -1511,6 +1511,13 @@ def test_autodoc_typed_instance_variables(app):
' attr6',
'',
'',
+ ' .. py:attribute:: Class.descr4',
+ ' :module: target.typed_vars',
+ ' :type: int',
+ '',
+ ' This is descr4',
+ '',
+ '',
'.. py:data:: attr1',
' :module: target.typed_vars',
' :type: str',