File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2580,14 +2580,14 @@ initialize_caches(zoneinfo_state *state)
2580
2580
}
2581
2581
2582
2582
static PyObject *
2583
- zoneinfo_init_subclass (PyTypeObject * cls , PyObject * args , PyObject * * kwargs )
2583
+ zoneinfo_init_subclass (PyObject * cls , PyObject * args , PyObject * kwargs )
2584
2584
{
2585
2585
PyObject * weak_cache = new_weak_cache ();
2586
2586
if (weak_cache == NULL ) {
2587
2587
return NULL ;
2588
2588
}
2589
2589
2590
- if (PyObject_SetAttrString (( PyObject * ) cls , "_weak_cache" ,
2590
+ if (PyObject_SetAttrString (cls , "_weak_cache" ,
2591
2591
weak_cache ) < 0 ) {
2592
2592
Py_DECREF (weak_cache );
2593
2593
return NULL ;
@@ -2611,7 +2611,7 @@ static PyMethodDef zoneinfo_methods[] = {
2611
2611
{"__reduce__" , (PyCFunction )zoneinfo_reduce , METH_NOARGS ,
2612
2612
PyDoc_STR ("Function for serialization with the pickle protocol." )},
2613
2613
ZONEINFO_ZONEINFO__UNPICKLE_METHODDEF
2614
- {"__init_subclass__" , ( PyCFunction )( void ( * )( void )) zoneinfo_init_subclass ,
2614
+ {"__init_subclass__" , _PyCFunction_CAST ( zoneinfo_init_subclass ) ,
2615
2615
METH_VARARGS | METH_KEYWORDS | METH_CLASS ,
2616
2616
PyDoc_STR ("Function to initialize subclasses." )},
2617
2617
{NULL } /* Sentinel */
You can’t perform that action at this time.
0 commit comments