mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #10027: autodoc_typehints_format does not work with :show-inheritance:
This commit is contained in:
@@ -9,3 +9,6 @@ C = Callable[[int], None] # a generic alias not having a doccomment
|
||||
class Class:
|
||||
#: A list of int
|
||||
T = List[int]
|
||||
|
||||
#: A list of Class
|
||||
L = List[Class]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from datetime import date
|
||||
from typing import NewType, TypeVar
|
||||
|
||||
#: T1
|
||||
@@ -15,7 +16,7 @@ T4 = TypeVar("T4", covariant=True)
|
||||
T5 = TypeVar("T5", contravariant=True)
|
||||
|
||||
#: T6
|
||||
T6 = NewType("T6", int)
|
||||
T6 = NewType("T6", date)
|
||||
|
||||
#: T7
|
||||
T7 = TypeVar("T7", bound=int)
|
||||
@@ -26,4 +27,4 @@ class Class:
|
||||
T1 = TypeVar("T1")
|
||||
|
||||
#: T6
|
||||
T6 = NewType("T6", int)
|
||||
T6 = NewType("T6", date)
|
||||
|
||||
Reference in New Issue
Block a user