Total Complexity | 0 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """ |
||
2 | PRIVATE MODULE: do not import (from) it directly. |
||
3 | |||
4 | This module contains types that are not available by default. |
||
5 | """ |
||
6 | import typing |
||
7 | from inspect import Parameter |
||
8 | |||
9 | |||
10 | T = typing.TypeVar('T') |
||
11 | KT = typing.TypeVar('KT') |
||
12 | VT = typing.TypeVar('VT') |
||
13 | Empty = Parameter.empty |
||
14 | Unknown = type('Unknown', (Empty, ), {}) |
||
15 | Module = type(typing) |
||
16 | NoneType = type(None) |
||
17 | Ellipsis_ = type(...) # Use EllipsisType instead. |
||
18 | EllipsisType = type(...) |
||
19 |