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.
1 parent 1c17bfc commit e415739Copy full SHA for e415739
Modules/_zoneinfo.c
@@ -2580,14 +2580,14 @@ initialize_caches(zoneinfo_state *state)
2580
}
2581
2582
static PyObject *
2583
-zoneinfo_init_subclass(PyTypeObject *cls, PyObject *args, PyObject **kwargs)
+zoneinfo_init_subclass(PyObject *cls, PyObject *args, PyObject **kwargs)
2584
{
2585
PyObject *weak_cache = new_weak_cache();
2586
if (weak_cache == NULL) {
2587
return NULL;
2588
2589
2590
- if (PyObject_SetAttrString((PyObject *)cls, "_weak_cache",
+ if (PyObject_SetAttrString(cls, "_weak_cache",
2591
weak_cache) < 0) {
2592
Py_DECREF(weak_cache);
2593
0 commit comments