summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-ext-autodoc/target/genericalias.py
blob: 06026fbbc12619e6d7b0d00762187c5eaf534b66 (plain)
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]