@@ -123,7 +123,10 @@ PyTypeObject _PyNoDefault_Type = {
123123
124124PyObject  _Py_NoDefaultStruct  =  _PyObject_HEAD_INIT (& _PyNoDefault_Type );
125125
126- /* NoExtraItems: a marker object for TypeDict extra_items when it's unset. */ 
126+ /* NoExtraItems: a marker object for TypedDict extra_items when it's unset. */ 
127+ 
128+ static  PyTypeObject  _PyNoExtraItems_Type ;
129+ static  PyObject  _Py_NoExtraItemsStruct ;
127130
128131static  PyObject  * 
129132NoExtraItems_repr (PyObject  * op )
@@ -167,7 +170,7 @@ PyDoc_STRVAR(noextraitems_doc,
167170"--\n\n" 
168171"The type of the NoExtraItems singleton." );
169172
170- PyTypeObject  _PyNoExtraItems_Type  =  {
173+ static   PyTypeObject  _PyNoExtraItems_Type  =  {
171174    PyVarObject_HEAD_INIT (& PyType_Type , 0 )
172175    "NoExtraItemsType" ,
173176    .tp_dealloc  =  noextraitems_dealloc ,
@@ -178,7 +181,16 @@ PyTypeObject _PyNoExtraItems_Type = {
178181    .tp_new  =  noextraitems_new ,
179182};
180183
181- PyObject  _Py_NoExtraItemsStruct  =  _PyObject_HEAD_INIT (& _PyNoExtraItems_Type );
184+ static  PyObject  _Py_NoExtraItemsStruct  =  _PyObject_HEAD_INIT (& _PyNoExtraItems_Type );
185+ 
186+ /* Accessors to avoid exporting global variables. */ 
187+ PyObject  *  _Py_GetNoExtraItemsSingleton (void ) {
188+     return  & _Py_NoExtraItemsStruct ;
189+ }
190+ 
191+ PyTypeObject  *  _Py_GetNoExtraItemsType (void ) {
192+     return  & _PyNoExtraItems_Type ;
193+ }
182194
183195typedef  struct  {
184196    PyObject_HEAD 
0 commit comments