diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 7269e181c73497..5fa89423d20bf6 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1020,9 +1020,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::