summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorziheng <zihenglv@gmail.com>2020-05-26 04:45:35 (GMT)
committerGitHub <noreply@github.com>2020-05-26 04:45:35 (GMT)
commit2b0e654f91f28379c6c7ef5fd80e8754afb70935 (patch)
tree50cd969b952f994328b1b80c10298f6cb28af17b
parent3cfe5b7b8fb3a0396e62800f3873d9b1f70da1c2 (diff)
downloadcpython-2b0e654f91f28379c6c7ef5fd80e8754afb70935.zip
cpython-2b0e654f91f28379c6c7ef5fd80e8754afb70935.tar.gz
cpython-2b0e654f91f28379c6c7ef5fd80e8754afb70935.tar.bz2
bpo-40745: Fix typos in NewType docs (GH-20379)
-rw-r--r--Doc/library/typing.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index fa13c07..e85b6d6 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::