aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-10-13 11:38:45 -0700
committerGitHub <noreply@github.com>2019-10-13 11:38:45 -0700
commitc732660b7b18352ba8524ac78d39975afe4392ef (patch)
tree8a6e1c27e61161796e39ef4b37c33f0c843b786b
parente742826531d4369cb1eff65337fa95fd67de8d42 (diff)
downloadcpython3-c732660b7b18352ba8524ac78d39975afe4392ef.tar.gz
bpo-38467: Fix argument name of typing functions (GH-16753)
(cherry picked from commit fdfe2833ace93021278fe4c41c40e1d08d70abf9) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
-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 94d60b4602..323dac2082 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1041,8 +1041,8 @@ The module defines the following classes, functions and decorators:
a dictionary constructed by merging all the ``__annotations__`` along
``C.__mro__`` in reverse order.
-.. function:: get_origin(typ)
-.. function:: get_args(typ)
+.. function:: get_origin(tp)
+.. function:: get_args(tp)
Provide basic introspection for generic types and special typing forms.