summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/types.py
blob: 46ef70668e28538cafdaf421dd120326e82f6130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""Import wrapper for type hints when available."""
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

TYPE_CHECKING = False

try:
    from typing import (
        Any,
        AnyStr,
        BinaryIO,
        Callable,
        Dict,
        FrozenSet,
        Generator,
        IO,
        Iterable,
        Iterator,
        List,
        Optional,
        Pattern,
        Set,
        Text,
        TextIO,
        Tuple,
        Type,
        TYPE_CHECKING,
        TypeVar,
        Union,
    )
except ImportError:
    pass