bpo-40745: Fix typos in NewType docs (GH-20379)

(cherry picked from commit 2b0e654f91)

Co-authored-by: ziheng <zihenglv@gmail.com>
This commit is contained in:
Miss Islington (bot) 2020-05-25 21:52:14 -07:00 committed by GitHub
parent b03e0ee226
commit 6597e2af83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1021,9 +1021,9 @@ The module defines the following classes, functions and decorators:
``List[ForwardRef("SomeClass")]``. This class should not be instantiated by
a user, but may be used by introspection tools.
.. function:: NewType(typ)
.. function:: NewType(name, tp)
A helper function to indicate a distinct types to a typechecker,
A helper function to indicate a distinct type to a typechecker,
see :ref:`distinct`. At runtime it returns a function that returns
its argument. Usage::