summaryrefslogtreecommitdiff
path: root/tests/roots/test-ext-autodoc/target/classes.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-11-21 11:25:48 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-11-21 18:50:54 +0900
commitfb92547b911cdbe2c766e513cc179a017dcc6705 (patch)
tree1d939ff4c9a2a577ad27626467a88a26ae71f67a /tests/roots/test-ext-autodoc/target/classes.py
parent647314133d7a9a524087eddd9c21203010cb4aa7 (diff)
downloadsphinx-git-fb92547b911cdbe2c766e513cc179a017dcc6705.tar.gz
Fix #9866: autodoc: doccoment for the imported class was ignored
Autodoc tried to scan doccomment on the module where the class defined. But it failed to get it if the class is imported from other module. This analyzes the target module to obtain the doccomment.
Diffstat (limited to 'tests/roots/test-ext-autodoc/target/classes.py')
-rw-r--r--tests/roots/test-ext-autodoc/target/classes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/roots/test-ext-autodoc/target/classes.py b/tests/roots/test-ext-autodoc/target/classes.py
index d18128584..5ba0294fb 100644
--- a/tests/roots/test-ext-autodoc/target/classes.py
+++ b/tests/roots/test-ext-autodoc/target/classes.py
@@ -37,3 +37,6 @@ Alias = Foo
#: docstring
OtherAlias = Bar
+
+#: docstring
+IntAlias = int