@@ -6917,7 +6917,7 @@ static PyMethodDef object_methods[] = {
69176917 OBJECT___REDUCE_EX___METHODDEF
69186918 OBJECT___REDUCE___METHODDEF
69196919 OBJECT___GETSTATE___METHODDEF
6920- {"__subclasshook__" , object_subclasshook , METH_CLASS | METH_VARARGS ,
6920+ {"__subclasshook__" , object_subclasshook , METH_CLASS | METH_O ,
69216921 object_subclasshook_doc },
69226922 {"__init_subclass__" , object_init_subclass , METH_CLASS | METH_NOARGS ,
69236923 object_init_subclass_doc },
@@ -9893,7 +9893,8 @@ static pytype_slotdef slotdefs[] = {
98939893 TPSLOT (__getattribute__ , tp_getattro , _Py_slot_tp_getattr_hook ,
98949894 wrap_binaryfunc ,
98959895 "__getattribute__($self, name, /)\n--\n\nReturn getattr(self, name)." ),
9896- TPSLOT (__getattr__ , tp_getattro , _Py_slot_tp_getattr_hook , NULL , "" ),
9896+ TPSLOT (__getattr__ , tp_getattro , _Py_slot_tp_getattr_hook , NULL ,
9897+ "__getattr__($self, name, /)\n--\n\nImplement getattr(self, name)." ),
98979898 TPSLOT (__setattr__ , tp_setattro , slot_tp_setattro , wrap_setattr ,
98989899 "__setattr__($self, name, value, /)\n--\n\nImplement setattr(self, name, value)." ),
98999900 TPSLOT (__delattr__ , tp_setattro , slot_tp_setattro , wrap_delattr ,
@@ -9928,7 +9929,9 @@ static pytype_slotdef slotdefs[] = {
99289929 TPSLOT (__new__ , tp_new , slot_tp_new , NULL ,
99299930 "__new__(type, /, *args, **kwargs)\n--\n\n"
99309931 "Create and return new object. See help(type) for accurate signature." ),
9931- TPSLOT (__del__ , tp_finalize , slot_tp_finalize , (wrapperfunc )wrap_del , "" ),
9932+ TPSLOT (__del__ , tp_finalize , slot_tp_finalize , (wrapperfunc )wrap_del ,
9933+ "__del__($self, /)\n--\n\n"
9934+ "Called when the instance is about to be destroyed." ),
99329935
99339936 BUFSLOT (__buffer__ , bf_getbuffer , slot_bf_getbuffer , wrap_buffer ,
99349937 "__buffer__($self, flags, /)\n--\n\n"
0 commit comments