From 9ecc1f2147e1583d1b055d0b15e2f84c0d21e9f5 Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Tue, 26 Jul 2016 07:35:28 -0700 Subject: [PATCH] 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.) --- stdlib/2.7/typing.pyi | 1 + stdlib/3/typing.pyi | 1 + 2 files changed, 2 insertions(+) diff --git a/stdlib/2.7/typing.pyi b/stdlib/2.7/typing.pyi index b7a43feea..da952421e 100644 --- a/stdlib/2.7/typing.pyi +++ b/stdlib/2.7/typing.pyi @@ -16,6 +16,7 @@ Type = object() builtinclass = object() _promote = object() NamedTuple = object() +NewType = object() # Type aliases diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index b96baa2d6..8fe18d358 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -17,6 +17,7 @@ builtinclass = object() _promote = object() NamedTuple = object() no_type_check = object() +NewType = object() # Type aliases and type constructors