File: _typing.py

package info (click to toggle)
python-fs 2.4.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,384 kB
  • sloc: python: 13,196; makefile: 226; sh: 3
file content (22 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
Typing objects missing from Python3.5.1

"""
import sys

import six

_PY = sys.version_info

from typing import overload  # type: ignore

if _PY.major == 3 and _PY.minor == 5 and _PY.micro in (0, 1):

    def overload(func):  # pragma: no cover  # noqa: F811
        return func


try:
    from typing import Text
except ImportError:  # pragma: no cover
    Text = six.text_type  # type: ignore