Skip to content

Commit 80c1a53

Browse files
east825xzy3-cdc
authored andcommitted
Fix the attribute names in the docstring of GenericAlias (pythonGH-22594)
1 parent 6648761 commit 80c1a53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/genericaliasobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ PyTypeObject Py_GenericAliasType = {
582582
.tp_name = "types.GenericAlias",
583583
.tp_doc = "Represent a PEP 585 generic type\n"
584584
"\n"
585-
"E.g. for t = list[int], t.origin is list and t.args is (int,).",
585+
"E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).",
586586
.tp_basicsize = sizeof(gaobject),
587587
.tp_dealloc = ga_dealloc,
588588
.tp_repr = ga_repr,

0 commit comments

Comments
 (0)