Skip to content

Commit 2b0e654

Browse files
authored
bpo-40745: Fix typos in NewType docs (GH-20379)
1 parent 3cfe5b7 commit 2b0e654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,9 +1021,9 @@ The module defines the following classes, functions and decorators:
10211021
``List[ForwardRef("SomeClass")]``. This class should not be instantiated by
10221022
a user, but may be used by introspection tools.
10231023

1024-
.. function:: NewType(typ)
1024+
.. function:: NewType(name, tp)
10251025

1026-
A helper function to indicate a distinct types to a typechecker,
1026+
A helper function to indicate a distinct type to a typechecker,
10271027
see :ref:`distinct`. At runtime it returns a function that returns
10281028
its argument. Usage::
10291029

0 commit comments

Comments
 (0)