mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
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:
committed by
Guido van Rossum
parent
b8c08f25f7
commit
9ecc1f2147
@@ -16,6 +16,7 @@ Type = object()
|
||||
builtinclass = object()
|
||||
_promote = object()
|
||||
NamedTuple = object()
|
||||
NewType = object()
|
||||
|
||||
# Type aliases
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ builtinclass = object()
|
||||
_promote = object()
|
||||
NamedTuple = object()
|
||||
no_type_check = object()
|
||||
NewType = object()
|
||||
|
||||
# Type aliases and type constructors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user