From a1a90e4c9541fa740dcc7fb27e267fa5fb89617a Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 18 Jun 2026 10:43:38 +0800 Subject: [PATCH] Update os.c --- src/modules/os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/os.c b/src/modules/os.c index 1109d2cf..7c366730 100644 --- a/src/modules/os.c +++ b/src/modules/os.c @@ -235,8 +235,8 @@ static bool io_FileIO_flush(int argc, py_Ref argv) { void pk__add_module_io() { py_Ref mod = py_newmodule("io"); - - py_Type FileIO = pk_newtype("FileIO", tp_object, mod, NULL, false, true); + py_Type FileIO = py_newtype("FileIO", tp_object, mod, NULL); + py_tpsetfinal(FileIO); py_bindmagic(FileIO, __new__, io_FileIO__new__); py_bindmagic(FileIO, __enter__, io_FileIO__enter__);