Skip to content

Commit 77f0a23

Browse files
authored
Fix the attribute names in the docstring of GenericAlias (GH-22594)
1 parent 3f34237 commit 77f0a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/genericaliasobject.c

+1-1
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)