diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-11-09 02:48:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 02:48:55 +0900 |
commit | 7db3633778a24c4fc90c8a0ceb2318d6df7cf4e3 (patch) | |
tree | 974466008fe9453f5171721c370a984e9f25f014 /tests/roots/test-ext-autodoc/target/classes.py | |
parent | 5337e3848cce988d18a048aaa7a258b275d67e6d (diff) | |
parent | e2bf9166da3e89eb7cbe7abb9c1e47e34351bbf8 (diff) | |
download | sphinx-git-7db3633778a24c4fc90c8a0ceb2318d6df7cf4e3.tar.gz |
Merge pull request #8231 from tk0miya/8219_params_for_base_generic_class_is_not_shown
Fix #8219: autodoc: Parameters for generic base class are not shown
Diffstat (limited to 'tests/roots/test-ext-autodoc/target/classes.py')
-rw-r--r-- | tests/roots/test-ext-autodoc/target/classes.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/roots/test-ext-autodoc/target/classes.py b/tests/roots/test-ext-autodoc/target/classes.py index 52c23748b..7e7d7bcd3 100644 --- a/tests/roots/test-ext-autodoc/target/classes.py +++ b/tests/roots/test-ext-autodoc/target/classes.py @@ -1,4 +1,5 @@ from inspect import Parameter, Signature +from typing import List, Union class Foo: @@ -21,3 +22,8 @@ class Qux: def __init__(self, x, y): pass + + +class Quux(List[Union[int, float]]): + """A subclass of List[Union[int, float]]""" + pass |