Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
14023 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
typing_stubs.py 275 B
# 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