1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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]