8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
notimplemented_methods
nodefault_methods
1 parent 7dc9875 commit 93fce2dCopy full SHA for 93fce2d
Objects/typevarobject.c
@@ -73,7 +73,7 @@ NoDefault_reduce(PyObject *op, PyObject *Py_UNUSED(ignored))
73
return PyUnicode_FromString("NoDefault");
74
}
75
76
-static PyMethodDef notimplemented_methods[] = {
+static PyMethodDef nodefault_methods[] = {
77
{"__reduce__", NoDefault_reduce, METH_NOARGS, NULL},
78
{NULL, NULL}
79
};
@@ -98,7 +98,7 @@ nodefault_dealloc(PyObject *nodefault)
98
_Py_SetImmortal(nodefault);
99
100
101
-PyDoc_STRVAR(notimplemented_doc,
+PyDoc_STRVAR(nodefault_doc,
102
"NoDefaultType()\n"
103
"--\n\n"
104
"The type of the NoDefault singleton.");
@@ -109,8 +109,8 @@ PyTypeObject _PyNoDefault_Type = {
109
.tp_dealloc = nodefault_dealloc,
110
.tp_repr = NoDefault_repr,
111
.tp_flags = Py_TPFLAGS_DEFAULT,
112
- .tp_doc = notimplemented_doc,
113
- .tp_methods = notimplemented_methods,
+ .tp_doc = nodefault_doc,
+ .tp_methods = nodefault_methods,
114
.tp_new = nodefault_new,
115
116
0 commit comments