Skip to content

Commit 004db21

Browse files
authored
Rename notimplemented_methods into nodefault_methods (#118896)
1 parent 7ac933e commit 004db21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: Objects/typevarobject.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ NoDefault_reduce(PyObject *op, PyObject *Py_UNUSED(ignored))
7373
return PyUnicode_FromString("NoDefault");
7474
}
7575

76-
static PyMethodDef notimplemented_methods[] = {
76+
static PyMethodDef nodefault_methods[] = {
7777
{"__reduce__", NoDefault_reduce, METH_NOARGS, NULL},
7878
{NULL, NULL}
7979
};
@@ -98,7 +98,7 @@ nodefault_dealloc(PyObject *nodefault)
9898
_Py_SetImmortal(nodefault);
9999
}
100100

101-
PyDoc_STRVAR(notimplemented_doc,
101+
PyDoc_STRVAR(nodefault_doc,
102102
"NoDefaultType()\n"
103103
"--\n\n"
104104
"The type of the NoDefault singleton.");
@@ -109,8 +109,8 @@ PyTypeObject _PyNoDefault_Type = {
109109
.tp_dealloc = nodefault_dealloc,
110110
.tp_repr = NoDefault_repr,
111111
.tp_flags = Py_TPFLAGS_DEFAULT,
112-
.tp_doc = notimplemented_doc,
113-
.tp_methods = notimplemented_methods,
112+
.tp_doc = nodefault_doc,
113+
.tp_methods = nodefault_methods,
114114
.tp_new = nodefault_new,
115115
};
116116

0 commit comments

Comments
 (0)