mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 03:50:16 +00:00
fix a bug
This commit is contained in:
parent
7ace02a039
commit
1649a4e822
@ -13,7 +13,7 @@ namespace pkpy {
|
||||
} \
|
||||
static void _check_type(VM* vm, PyObject* val){ \
|
||||
if(!vm->isinstance(val, T::_type(vm))){ \
|
||||
vm->TypeError("expected '" #mod "." #name "', got " + OBJ_NAME(val).escape()); \
|
||||
vm->TypeError("expected '" #mod "." #name "', got " + OBJ_NAME(vm->_t(val)).escape()); \
|
||||
} \
|
||||
} \
|
||||
static PyObject* register_class(VM* vm, PyObject* mod) { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user