diff options
author | Mikhail Golubev <qsolo825@gmail.com> | 2020-10-08 21:38:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 21:38:36 (GMT) |
commit | 77f0a23e7a9fb247101b9b14a060c4ba1c4b87a5 (patch) | |
tree | 9b7e9d7ac2645955ab5216e9289b568f0c8d54dc /Objects | |
parent | 3f342376ab0da3b4c8a38a27edfafba8e8cdf52d (diff) | |
download | cpython-77f0a23e7a9fb247101b9b14a060c4ba1c4b87a5.zip cpython-77f0a23e7a9fb247101b9b14a060c4ba1c4b87a5.tar.gz cpython-77f0a23e7a9fb247101b9b14a060c4ba1c4b87a5.tar.bz2 |
Fix the attribute names in the docstring of GenericAlias (GH-22594)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/genericaliasobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genericaliasobject.c b/Objects/genericaliasobject.c index ab56e1c..6508c69 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, |