This commit is contained in:
blueloveTH 2024-08-20 13:22:51 +08:00
parent 42db5877a2
commit 54b45a48d4

View File

@ -129,7 +129,7 @@ static bool locals__contains__(int argc, py_Ref argv) {
}
py_Type pk_locals__register() {
py_Type type = pk_newtype("locals", tp_locals, NULL, NULL, false, true);
py_Type type = pk_newtype("locals", tp_object, NULL, NULL, false, true);
py_bindmagic(type, __getitem__, locals__getitem__);
py_bindmagic(type, __setitem__, locals__setitem__);