Fix #8219: autodoc: Parameters for generic base class are not shown

This commit is contained in:
Takeshi KOMIYA
2020-09-21 21:47:58 +09:00
parent 5337e3848c
commit e2bf9166da
7 changed files with 311 additions and 10 deletions

View File

@@ -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