summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-05-26 04:52:55 (GMT)
committerGitHub <noreply@github.com>2020-05-26 04:52:55 (GMT)
commitb38bd8888a6e90741a989db2fe321e8b98d5a5c4 (patch)
tree3d74069a8d2f69f5ee1e85a1913db1c5c3c7e3a4 /Doc/library
parent1f2cc7cedee1a768ee43151c115f6e338751eb8c (diff)
downloadcpython-b38bd8888a6e90741a989db2fe321e8b98d5a5c4.zip
cpython-b38bd8888a6e90741a989db2fe321e8b98d5a5c4.tar.gz
cpython-b38bd8888a6e90741a989db2fe321e8b98d5a5c4.tar.bz2
bpo-40745: Fix typos in NewType docs (GH-20379)
(cherry picked from commit 2b0e654f91f28379c6c7ef5fd80e8754afb70935) Co-authored-by: ziheng <zihenglv@gmail.com>
Diffstat (limited to 'Doc/library')
-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 7269e18..5fa8942 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::