Skip to content

Commit 239676a

Browse files
Updated error string
1 parent 114f250 commit 239676a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ _PyEval_MatchClass(PyThreadState *tstate, PyObject *subject, PyObject *type,
745745
return NULL;
746746
}
747747
if (!PyType_Check(type)) {
748-
const char *e = "called match pattern must be a class or types.UnionType (got %s)";
748+
const char *e = "called match pattern must be a class or typing.Union of classes (got %s)";
749749
_PyErr_Format(tstate, PyExc_TypeError, e, Py_TYPE(type)->tp_name);
750750
return NULL;
751751
}

0 commit comments

Comments
 (0)