From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 26 May 2020 04:52:14 +0000 (-0700) Subject: bpo-40745: Fix typos in NewType docs (GH-20379) X-Git-Tag: v3.9.0b2~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6597e2af83e947d18706a3c2a463a7b728974a64;p=thirdparty%2FPython%2Fcpython.git bpo-40745: Fix typos in NewType docs (GH-20379) (cherry picked from commit 2b0e654f91f28379c6c7ef5fd80e8754afb70935) Co-authored-by: ziheng --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index fa13c07c44ea..e85b6d697f79 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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::