| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from datetime import date |
| 4 |
from typing import NewType, TypeVar |
| 5 |
|
| 6 |
#: T1 |
| 7 |
T1 = TypeVar('T1') |
| 8 |
|
| 9 |
T2 = TypeVar('T2') # A TypeVar not having doc comment |
| 10 |
|
| 11 |
#: T3 |
| 12 |
T3 = TypeVar('T3', int, str) |
| 13 |
|
| 14 |
#: T4 |
| 15 |
T4 = TypeVar('T4', covariant=True) # NoQA: PLC0105 |
| 16 |
|
| 17 |
#: T5 |
| 18 |
T5 = TypeVar('T5', contravariant=True) # NoQA: PLC0105 |
| 19 |
|
| 20 |
#: T6 |
| 21 |
T6 = NewType('T6', date) |
| 22 |
|
| 23 |
#: T7 |
| 24 |
T7 = TypeVar('T7', bound=int) |
| 25 |
|
| 26 |
|
| 27 |
class Class: |
| 28 |
#: T1 |
| 29 |
T1 = TypeVar('T1') |
| 30 |
|
| 31 |
#: T6 |
| 32 |
T6 = NewType('T6', date) |