]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38467: Fix argument name of typing functions (GH-16753)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 13 Oct 2019 18:38:45 +0000 (11:38 -0700)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2019 18:38:45 +0000 (11:38 -0700)
(cherry picked from commit fdfe2833ace93021278fe4c41c40e1d08d70abf9)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Doc/library/typing.rst

index 94d60b4602526bd3dcbc2a93d6ed64b506593f0c..323dac20822010bd87065b9c5aac0dd137043c0b 100644 (file)
@@ -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.