@@ -7184,7 +7184,7 @@ wrap_descr_get(PyObject *self, PyObject *args, void *wrapped)
71847184 obj = NULL ;
71857185 if (type == Py_None )
71867186 type = NULL ;
7187- if (type == NULL && obj == NULL ) {
7187+ if (type == NULL && obj == NULL ) {
71887188 PyErr_SetString (PyExc_TypeError ,
71897189 "__get__(None, None) is invalid" );
71907190 return NULL ;
@@ -8209,7 +8209,7 @@ static slotdef slotdefs[] = {
82098209 TPSLOT ("__next__" , tp_iternext , slot_tp_iternext , wrap_next ,
82108210 "__next__($self, /)\n--\n\nImplement next(self)." ),
82118211 TPSLOT ("__get__" , tp_descr_get , slot_tp_descr_get , wrap_descr_get ,
8212- "__get__($self, instance, owner, /)\n--\n\nReturn an attribute of instance, which is of type owner." ),
8212+ "__get__($self, instance, owner=None , /)\n--\n\nReturn an attribute of instance, which is of type owner." ),
82138213 TPSLOT ("__set__" , tp_descr_set , slot_tp_descr_set , wrap_descr_set ,
82148214 "__set__($self, instance, value, /)\n--\n\nSet an attribute of instance to value." ),
82158215 TPSLOT ("__delete__" , tp_descr_set , slot_tp_descr_set ,
0 commit comments