mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
424 B
Python
16 lines
424 B
Python
2 years ago
|
"""Compatibility layer for the `typing` module, providing all Python versions access to the newest type-hinting features."""
|
||
|
from __future__ import (absolute_import, division, print_function)
|
||
|
__metaclass__ = type
|
||
|
|
||
|
# pylint: disable=wildcard-import,unused-wildcard-import
|
||
|
|
||
|
try:
|
||
|
from typing_extensions import *
|
||
|
except ImportError:
|
||
|
pass
|
||
|
|
||
|
try:
|
||
|
from typing import * # type: ignore[misc]
|
||
|
except ImportError:
|
||
|
pass
|