Add pyext support for @tuple.__new__

pull/335/head
Ibrahim Numanagić 2023-03-30 10:51:03 -07:00
parent 9ef321ca4a
commit d1b5279ffa
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ void Cache::populatePythonModule() {
py.iter = f;
} else if (n == "__del__") {
py.del = f;
} else if (n == "__init__") {
} else if (n == "__init__" || (c.ast->hasAttr(Attr::Tuple) && n == "__new__")) {
py.init = f;
} else {
py.methods.push_back(ir::PyFunction{