diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-11-21 11:25:48 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-11-21 18:50:54 +0900 |
commit | fb92547b911cdbe2c766e513cc179a017dcc6705 (patch) | |
tree | 1d939ff4c9a2a577ad27626467a88a26ae71f67a /tests/roots/test-ext-autodoc/target/classes.py | |
parent | 647314133d7a9a524087eddd9c21203010cb4aa7 (diff) | |
download | sphinx-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.py | 3 |
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 |