[3.14] gh-150285: Fix too long docstrings in GenericAlias and __class… · python/cpython@b6d3236 · GitHub
Skip to content

Commit b6d3236

Browse files
[3.14] gh-150285: Fix too long docstrings in GenericAlias and __class_getitem__ (GH-151354) (GH-151368)
(cherry picked from commit 65047f2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 7fe3ddc commit b6d3236

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

Objects/genericaliasobject.c

Lines changed: 2 additions & 1 deletion

Objects/tupleobject.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,10 @@ tuple___getnewargs___impl(PyTupleObject *self)
878878

879879
PyDoc_STRVAR(tuple_class_getitem_doc,
880880
"Tuples are generic over the types of their contents.\n\n\
881-
For example, use ``tuple[int, str]`` for a pair whose first element is an int and second element is a string.\n\n\
882-
Tuples also support the form ``tuple[T, ...]`` to indicate an arbitrary length tuple of elements of type T.");
881+
For example, use ``tuple[int, str]`` for a pair whose first element\n\
882+
is an int and second element is a string.\n\n\
883+
Tuples also support the form ``tuple[T, ...]`` to indicate\n\
884+
an arbitrary length tuple of elements of type T.");
883885

884886
static PyMethodDef tuple_methods[] = {
885887
TUPLE___GETNEWARGS___METHODDEF

Objects/typevarobject.c

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)