Fix the attribute names in the docstring of GenericAlias (GH-22594)

(cherry picked from commit 77f0a23e7a)

Co-authored-by: Mikhail Golubev <qsolo825@gmail.com>
This commit is contained in:
Miss Skeleton (bot) 2020-10-08 15:02:26 -07:00 committed by GitHub
parent 089c38677d
commit 3da210b69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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,