sphinx/tests/roots/test-ext-autodoc/target/genericalias.py

15 lines
226 B
Python

from typing import Callable, List
#: A list of int
T = List[int]
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]