]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the attribute names in the docstring of GenericAlias (GH-22594)
authorMikhail Golubev <qsolo825@gmail.com>
Thu, 8 Oct 2020 21:38:36 +0000 (00:38 +0300)
committerGitHub <noreply@github.com>
Thu, 8 Oct 2020 21:38:36 +0000 (14:38 -0700)
Objects/genericaliasobject.c

index ab56e1c4bf1a860dba287147bce3c94d61a7fe95..6508c69cbf7e361a35cb416fcca39b50da0ecfec 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,