gh-150285: Fix too long docstrings in GenericAlias and __class_getite… · python/cpython@65047f2 · GitHub
Skip to content

Commit 65047f2

Browse files
gh-150285: Fix too long docstrings in GenericAlias and __class_getitem__ (GH-151354)
1 parent 36fe778 commit 65047f2

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
@@ -957,8 +957,10 @@ tuple___getnewargs___impl(PyTupleObject *self)
957957

958958
PyDoc_STRVAR(tuple_class_getitem_doc,
959959
"Tuples are generic over the types of their contents.\n\n\
960-
For example, use ``tuple[int, str]`` for a pair whose first element is an int and second element is a string.\n\n\
961-
Tuples also support the form ``tuple[T, ...]`` to indicate an arbitrary length tuple of elements of type T.");
960+
For example, use ``tuple[int, str]`` for a pair whose first element\n\
961+
is an int and second element is a string.\n\n\
962+
Tuples also support the form ``tuple[T, ...]`` to indicate\n\
963+
an arbitrary length tuple of elements of type T.");
962964

963965
static PyMethodDef tuple_methods[] = {
964966
TUPLE___GETNEWARGS___METHODDEF

Objects/typevarobject.c

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)