diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-05-26 04:52:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 04:52:55 (GMT) |
commit | b38bd8888a6e90741a989db2fe321e8b98d5a5c4 (patch) | |
tree | 3d74069a8d2f69f5ee1e85a1913db1c5c3c7e3a4 /Doc/library | |
parent | 1f2cc7cedee1a768ee43151c115f6e338751eb8c (diff) | |
download | cpython-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.rst | 4 |
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:: |