This commit is contained in:
blueloveTH 2024-01-16 16:21:15 +08:00
parent 92638781ad
commit 3489567386

View File

@ -1111,7 +1111,7 @@ PyObject* VM::get_unbound_method(PyObject* obj, StrName name, PyObject** self, b
}
const PyTypeInfo* ti = &_all_types[objtype];
if(ti->m__getattr__){
if(fallback && ti->m__getattr__){
PyObject* ret = ti->m__getattr__(this, obj, name);
if(ret) return ret;
}