mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
a2a093836f
commit
807294e0eb
@ -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) {
|
bool py_checktype(const py_Ref self, py_Type type) {
|
||||||
if(self->type != type) {
|
if(self->type != type) {
|
||||||
// py_raise(PyExc_TypeError, "expected %s, got %s", py_typename(type), py_typename(self->type));
|
return TypeError("expected %t, got %t", type, self->type);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user