Add stubs for NewType helper function (#398)

(Note that this is not enough to support NewType(). However it's a prerequisite for the mypy implementation.)
This commit is contained in:
Michael Lee
2016-07-26 07:35:28 -07:00
committed by Guido van Rossum
parent b8c08f25f7
commit 9ecc1f2147
2 changed files with 2 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ Type = object()
builtinclass = object()
_promote = object()
NamedTuple = object()
NewType = object()
# Type aliases

View File

@@ -17,6 +17,7 @@ builtinclass = object()
_promote = object()
NamedTuple = object()
no_type_check = object()
NewType = object()
# Type aliases and type constructors