diff options
author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-10-08 22:02:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 22:02:26 (GMT) |
commit | 3da210b69f76bdd7f4e7fa2e3a12eab4dd478ed2 (patch) | |
tree | b8825504a0d410140377b6179fc50c3e04173dad /Objects | |
parent | 089c38677d2269ab52924e4eb117394a74dfd2d9 (diff) | |
download | cpython-3da210b69f76bdd7f4e7fa2e3a12eab4dd478ed2.zip cpython-3da210b69f76bdd7f4e7fa2e3a12eab4dd478ed2.tar.gz cpython-3da210b69f76bdd7f4e7fa2e3a12eab4dd478ed2.tar.bz2 |
Fix the attribute names in the docstring of GenericAlias (GH-22594)
(cherry picked from commit 77f0a23e7a9fb247101b9b14a060c4ba1c4b87a5)
Co-authored-by: Mikhail Golubev <qsolo825@gmail.com>
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 4f95216..3e850b5 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, |