diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-27 21:54:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 21:54:17 +0900 |
commit | 7888600f96bab96d76b822e4b64bebbf6c88fdfa (patch) | |
tree | 24b299a41fd740cfd7942e479b8f2651b17c9494 /tests/test_autodoc.py | |
parent | 4eafda8588ed8f18ed016e34edf1c4f4ac4f9200 (diff) | |
parent | b7ce4a4c13bf913eb97bed0c89ac31019d12a407 (diff) | |
download | sphinx-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.py | 7 |
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', |