@@ -123,63 +123,6 @@ PyTypeObject _PyNoDefault_Type = {
123123
124124PyObject _Py_NoDefaultStruct = _PyObject_HEAD_INIT (& _PyNoDefault_Type );
125125
126- /* NoExtraItems: a marker object for TypedDict extra_items when it's unset. */
127-
128- static PyObject *
129- NoExtraItems_repr (PyObject * op )
130- {
131- return PyUnicode_FromString ("typing.NoExtraItems" );
132- }
133-
134- static PyObject *
135- NoExtraItems_reduce (PyObject * op , PyObject * Py_UNUSED (ignored ))
136- {
137- return PyUnicode_FromString ("NoExtraItems" );
138- }
139-
140- static PyMethodDef noextraitems_methods [] = {
141- {"__reduce__" , NoExtraItems_reduce , METH_NOARGS , NULL },
142- {NULL , NULL }
143- };
144-
145- static PyObject *
146- noextraitems_new (PyTypeObject * type , PyObject * args , PyObject * kwargs )
147- {
148- if (PyTuple_GET_SIZE (args ) || (kwargs && PyDict_GET_SIZE (kwargs ))) {
149- PyErr_SetString (PyExc_TypeError , "NoExtraItemsType takes no arguments" );
150- return NULL ;
151- }
152- return (PyObject * )& _Py_NoExtraItemsStruct ;
153- }
154-
155- static void
156- noextraitems_dealloc (PyObject * obj )
157- {
158- /* This should never get called, but we also don't want to SEGV if
159- * we accidentally decref NoExtraItems out of existence. Instead,
160- * since NoExtraItems is an immortal object, re-set the reference count.
161- */
162- _Py_SetImmortal (obj );
163- }
164-
165- PyDoc_STRVAR (noextraitems_doc ,
166- "NoExtraItemsType()\n"
167- "--\n\n"
168- "The type of the NoExtraItems singleton." );
169-
170- PyTypeObject _PyNoExtraItems_Type = {
171- PyVarObject_HEAD_INIT (& PyType_Type , 0 )
172- "NoExtraItemsType" ,
173- .tp_dealloc = noextraitems_dealloc ,
174- .tp_repr = NoExtraItems_repr ,
175- .tp_flags = Py_TPFLAGS_DEFAULT ,
176- .tp_doc = noextraitems_doc ,
177- .tp_methods = noextraitems_methods ,
178- .tp_new = noextraitems_new ,
179- };
180-
181- PyObject _Py_NoExtraItemsStruct = _PyObject_HEAD_INIT (& _PyNoExtraItems_Type );
182-
183126typedef struct {
184127 PyObject_HEAD
185128 PyObject * value ;
0 commit comments