Skip to content

Commit

Permalink
Rename notimplemented_methods into nodefault_methods (python#118896)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored May 10, 2024
1 parent 7ac933e commit 004db21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Objects/typevarobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ NoDefault_reduce(PyObject *op, PyObject *Py_UNUSED(ignored))
return PyUnicode_FromString("NoDefault");
}

static PyMethodDef notimplemented_methods[] = {
static PyMethodDef nodefault_methods[] = {
{"__reduce__", NoDefault_reduce, METH_NOARGS, NULL},
{NULL, NULL}
};
Expand All @@ -98,7 +98,7 @@ nodefault_dealloc(PyObject *nodefault)
_Py_SetImmortal(nodefault);
}

PyDoc_STRVAR(notimplemented_doc,
PyDoc_STRVAR(nodefault_doc,
"NoDefaultType()\n"
"--\n\n"
"The type of the NoDefault singleton.");
Expand All @@ -109,8 +109,8 @@ PyTypeObject _PyNoDefault_Type = {
.tp_dealloc = nodefault_dealloc,
.tp_repr = NoDefault_repr,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_doc = notimplemented_doc,
.tp_methods = notimplemented_methods,
.tp_doc = nodefault_doc,
.tp_methods = nodefault_methods,
.tp_new = nodefault_new,
};

Expand Down

0 comments on commit 004db21

Please sign in to comment.