From 3dc743f73d5dd9f3bfd9c5791ce4345bbb230eba Mon Sep 17 00:00:00 2001 From: Wulian233 <1055917385@qq.com> Date: Sat, 4 Apr 2026 16:36:41 +0800 Subject: [PATCH] gh-148074: Fix `typeobject.c` missing error return --- Objects/typeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index b19aee6338dcc0..0ac5377d168812 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -9345,6 +9345,7 @@ type_ready_post_checks(PyTypeObject *type) PyErr_Format(PyExc_SystemError, "type %s has a tp_dictoffset that is too small", type->tp_name); + return -1; } } return 0;