gh-117431: Argument Clinic: copy forced text signature when cloning (#117591)

This commit is contained in:
Erlend E. Aasland 2024-04-10 10:12:05 +02:00 committed by GitHub
parent 73906d5c90
commit 0d42ac9474
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 70 additions and 10 deletions

View file

@ -357,7 +357,7 @@ exit:
}
PyDoc_STRVAR(unicode_find__doc__,
"find($self, sub, start=None, end=None, /)\n"
"find($self, sub[, start[, end]], /)\n"
"--\n"
"\n"
"Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].\n"
@ -413,7 +413,7 @@ exit:
}
PyDoc_STRVAR(unicode_index__doc__,
"index($self, sub, start=None, end=None, /)\n"
"index($self, sub[, start[, end]], /)\n"
"--\n"
"\n"
"Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].\n"
@ -1060,7 +1060,7 @@ exit:
}
PyDoc_STRVAR(unicode_rfind__doc__,
"rfind($self, sub, start=None, end=None, /)\n"
"rfind($self, sub[, start[, end]], /)\n"
"--\n"
"\n"
"Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].\n"
@ -1116,7 +1116,7 @@ exit:
}
PyDoc_STRVAR(unicode_rindex__doc__,
"rindex($self, sub, start=None, end=None, /)\n"
"rindex($self, sub[, start[, end]], /)\n"
"--\n"
"\n"
"Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].\n"
@ -1888,4 +1888,4 @@ skip_optional_pos:
exit:
return return_value;
}
/*[clinic end generated code: output=3aa49013ffa3fa93 input=a9049054013a1b77]*/
/*[clinic end generated code: output=9fee62bd337f809b input=a9049054013a1b77]*/