summaryrefslogtreecommitdiff
path: root/typing_stubs.py
blob: b2e39480430ee03a2095f4304126a488e2db2735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Stub definitions for things provided by the typing package
# for use by older Python versions.

class Dummy:
    def __index__(self, *args):
        return None

List = Dummy()
Tuple = Dummy()
Set = Dummy()
TextIO = Dummy()
Iterator = Dummy()
Newtype = lambda name, ty: ty