]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the attribute names in the docstring of GenericAlias (GH-22594)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 Oct 2020 22:02:26 +0000 (15:02 -0700)
committerGitHub <noreply@github.com>
Thu, 8 Oct 2020 22:02:26 +0000 (15:02 -0700)
(cherry picked from commit 77f0a23e7a9fb247101b9b14a060c4ba1c4b87a5)

Co-authored-by: Mikhail Golubev <qsolo825@gmail.com>
Objects/genericaliasobject.c

index 4f952162ec93098d2f3acb9a23fbcc7aecaf95d5..3e850b51092cc74207e5bdbf4934ec9be210fad7 100644 (file)
@@ -582,7 +582,7 @@ PyTypeObject Py_GenericAliasType = {
     .tp_name = "types.GenericAlias",
     .tp_doc = "Represent a PEP 585 generic type\n"
               "\n"
-              "E.g. for t = list[int], t.origin is list and t.args is (int,).",
+              "E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).",
     .tp_basicsize = sizeof(gaobject),
     .tp_dealloc = ga_dealloc,
     .tp_repr = ga_repr,