From 807294e0eba53218543e7bae0c77a8fc511e25b0 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 8 Jul 2024 00:35:44 +0800 Subject: [PATCH] ... --- src/public/cast.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/public/cast.c b/src/public/cast.c index f9748924..1dee7d68 100644 --- a/src/public/cast.c +++ b/src/public/cast.c @@ -43,8 +43,7 @@ bool py_istype(const py_Ref self, py_Type type) { return self->type == type; } bool py_checktype(const py_Ref self, py_Type type) { if(self->type != type) { - // py_raise(PyExc_TypeError, "expected %s, got %s", py_typename(type), py_typename(self->type)); - return false; + return TypeError("expected %t, got %t", type, self->type); } return true; } \ No newline at end of file