mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #8219: autodoc: Parameters for generic base class are not shown
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user