summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-04-18 17:41:14 (GMT)
committerGitHub <noreply@github.com>2023-04-18 17:41:14 (GMT)
commit07804ce24c3103ee1bb141af31b9a1a0f92f5e43 (patch)
tree25e104141cfd0547df0801aca80257b6d69f3e96 /Python
parent78cac520c34b133ba32665e601adbc794282f4b7 (diff)
downloadcpython-07804ce24c3103ee1bb141af31b9a1a0f92f5e43.zip
cpython-07804ce24c3103ee1bb141af31b9a1a0f92f5e43.tar.gz
cpython-07804ce24c3103ee1bb141af31b9a1a0f92f5e43.tar.bz2
GH-100530: Change the error message for non-class class patterns (GH-103576)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 8c43e3d..d8495da 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -416,7 +416,7 @@ match_class(PyThreadState *tstate, PyObject *subject, PyObject *type,
Py_ssize_t nargs, PyObject *kwargs)
{
if (!PyType_Check(type)) {
- const char *e = "called match pattern must be a type";
+ const char *e = "called match pattern must be a class";
_PyErr_Format(tstate, PyExc_TypeError, e);
return NULL;
}