]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40471: Fix grammar typo in 'issubclass' docstring (GH-19847)
authorAlex Povel <48824213+alexpovel@users.noreply.github.com>
Wed, 3 Jun 2020 13:19:45 +0000 (15:19 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Jun 2020 13:19:45 +0000 (06:19 -0700)
Just a brief grammar fix.

See also <>.

Python/bltinmodule.c
Python/clinic/bltinmodule.c.h

index 199b09c4d8c41e61fda2938c81733eb3859a35c2..65f9528084654d2d4ebb3abf57b766c12a437f2e 100644 (file)
@@ -2494,17 +2494,17 @@ issubclass as builtin_issubclass
     class_or_tuple: object
     /
 
-Return whether 'cls' is derived from another class or is the same class.
+Return whether 'cls' is derived from another class or is the same class.
 
 A tuple, as in ``issubclass(x, (A, B, ...))``, may be given as the target to
 check against. This is equivalent to ``issubclass(x, A) or issubclass(x, B)
-or ...`` etc.
+or ...``.
 [clinic start generated code]*/
 
 static PyObject *
 builtin_issubclass_impl(PyObject *module, PyObject *cls,
                         PyObject *class_or_tuple)
-/*[clinic end generated code: output=358412410cd7a250 input=af5f35e9ceaddaf6]*/
+/*[clinic end generated code: output=358412410cd7a250 input=a24b9f3d58c370d6]*/
 {
     int retval;
 
index 377afded9f8c596b47d76193b316bd570dea94f5..bc3b518792811d126e84f6de52ab0d80e60e09a7 100644 (file)
@@ -800,11 +800,11 @@ PyDoc_STRVAR(builtin_issubclass__doc__,
 "issubclass($module, cls, class_or_tuple, /)\n"
 "--\n"
 "\n"
-"Return whether \'cls\' is derived from another class or is the same class.\n"
+"Return whether \'cls\' is derived from another class or is the same class.\n"
 "\n"
 "A tuple, as in ``issubclass(x, (A, B, ...))``, may be given as the target to\n"
 "check against. This is equivalent to ``issubclass(x, A) or issubclass(x, B)\n"
-"or ...`` etc.");
+"or ...``.");
 
 #define BUILTIN_ISSUBCLASS_METHODDEF    \
     {"issubclass", (PyCFunction)(void(*)(void))builtin_issubclass, METH_FASTCALL, builtin_issubclass__doc__},
@@ -830,4 +830,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
 exit:
     return return_value;
 }
-/*[clinic end generated code: output=780fd9712ec6a6db input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e2fcf0201790367c input=a9049054013a1b77]*/