Skip to content

Commit 65f2a64

Browse files
Update Python/ceval.c
Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent c4062b1 commit 65f2a64

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 typing.Union of classes (got %s)";
748+
const char *e = "called match pattern must be a class or a 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)