File: typing_hacks.py

package info (click to toggle)
python-stone 3.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,036 kB
  • sloc: python: 22,311; objc: 498; sh: 23; makefile: 11
file content (6 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
MYPY = False
if MYPY:
    from typing import cast  # noqa # pylint: disable=unused-import,useless-suppression,import-error
else:
    def cast(typ, obj):  # pylint: disable=unused-argument
        return obj