From 0ba154578e2d9bc66cd662321ca8c59a8f98efac Mon Sep 17 00:00:00 2001 From: Mikhail Golubev Date: Thu, 8 Oct 2020 13:13:28 +0300 Subject: [PATCH] Fix the attribute names in the docstring of GenericAlias --- Objects/genericaliasobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/genericaliasobject.c b/Objects/genericaliasobject.c index ab56e1c4bf1a86..6508c69cbf7e36 100644 --- a/Objects/genericaliasobject.c +++ b/Objects/genericaliasobject.c @@ -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,