summaryrefslogtreecommitdiff
path: root/tests/test_ext_autodoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-01 14:54:08 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-01 18:06:57 +0900
commit3fc98a2b3d6dec830caa19ecc8a1dadd80ebb6dd (patch)
tree0d718bff2ae9ffdf6414179741909b03f08f4006 /tests/test_ext_autodoc.py
parent6df45e0eadba5ac0e55296e67414b03dc24779b5 (diff)
downloadsphinx-git-3fc98a2b3d6dec830caa19ecc8a1dadd80ebb6dd.tar.gz
Fix #10027: autodoc_typehints_format does not work with :show-inheritance:
Diffstat (limited to 'tests/test_ext_autodoc.py')
-rw-r--r--tests/test_ext_autodoc.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py
index c853fbb03..e701d7778 100644
--- a/tests/test_ext_autodoc.py
+++ b/tests/test_ext_autodoc.py
@@ -1874,6 +1874,12 @@ def test_autodoc_GenericAlias(app):
'',
' alias of :py:class:`~typing.List`\\ [:py:class:`int`]',
'',
+ '.. py:attribute:: L',
+ ' :module: target.genericalias',
+ '',
+ ' A list of Class',
+ '',
+ '',
'.. py:attribute:: T',
' :module: target.genericalias',
'',
@@ -1898,6 +1904,15 @@ def test_autodoc_GenericAlias(app):
' alias of :py:class:`~typing.List`\\ [:py:class:`int`]',
'',
'',
+ '.. py:data:: L',
+ ' :module: target.genericalias',
+ '',
+ ' A list of Class',
+ '',
+ ' alias of :py:class:`~typing.List`\\ '
+ '[:py:class:`target.genericalias.Class`]',
+ '',
+ '',
'.. py:data:: T',
' :module: target.genericalias',
'',
@@ -1935,7 +1950,7 @@ def test_autodoc_TypeVar(app):
'',
' T6',
'',
- ' alias of :py:class:`int`',
+ ' alias of :py:class:`datetime.date`',
'',
'',
'.. py:data:: T1',
@@ -1975,7 +1990,7 @@ def test_autodoc_TypeVar(app):
'',
' T6',
'',
- ' alias of :py:class:`int`',
+ ' alias of :py:class:`datetime.date`',
'',
'',
'.. py:data:: T7',