sphinx/tests/roots/test-ext-autodoc/target/genericalias.py
2025-01-03 01:33:14 +00:00

18 lines
263 B
Python

from __future__ import annotations
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]