Skip to content
Prev Previous commit
Next Next commit
remove redundant docstring casts
  • Loading branch information
picnixz committed Jan 20, 2025
commit df5d4778dd87116951e268341b8dbd7acccad89e
2 changes: 1 addition & 1 deletion Modules/_ctypes/_ctypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -5770,7 +5770,7 @@ comerror_dealloc(PyObject *self)
}

static PyType_Slot comerror_slots[] = {
{Py_tp_doc, (void *)PyDoc_STR(comerror_doc)},
{Py_tp_doc, PyDoc_STR(comerror_doc)},
Comment thread
picnixz marked this conversation as resolved.
Outdated
{Py_tp_init, comerror_init},
{Py_tp_traverse, comerror_traverse},
{Py_tp_dealloc, comerror_dealloc},
Expand Down
2 changes: 1 addition & 1 deletion Modules/_ctypes/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ CThunkObject_dealloc(PyObject *myself)
}

static PyType_Slot cthunk_slots[] = {
{Py_tp_doc, (void *)PyDoc_STR("CThunkObject")},
{Py_tp_doc, PyDoc_STR("CThunkObject")},
{Py_tp_dealloc, CThunkObject_dealloc},
{Py_tp_traverse, CThunkObject_traverse},
{Py_tp_clear, CThunkObject_clear},
Expand Down
2 changes: 1 addition & 1 deletion Modules/_ctypes/cfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ static PyType_Slot cfield_slots[] = {
{Py_tp_new, PyCField_new},
{Py_tp_dealloc, PyCField_dealloc},
{Py_tp_repr, PyCField_repr},
{Py_tp_doc, (void *)PyDoc_STR("Structure/Union member")},
{Py_tp_doc, PyDoc_STR("Structure/Union member")},
{Py_tp_traverse, PyCField_traverse},
{Py_tp_clear, PyCField_clear},
{Py_tp_getset, PyCField_getset},
Expand Down