bpo-41861: Convert _sqlite3 CursorType and ConnectionType to heap types (GH-22478)
diff --git a/Modules/_sqlite/row.c b/Modules/_sqlite/row.c
index 85179e7..76b6f04 100644
--- a/Modules/_sqlite/row.c
+++ b/Modules/_sqlite/row.c
@@ -49,7 +49,7 @@
if (!PyArg_ParseTuple(args, "OO", &cursor, &data))
return NULL;
- if (!PyObject_TypeCheck((PyObject*)cursor, &pysqlite_CursorType)) {
+ if (!PyObject_TypeCheck((PyObject*)cursor, pysqlite_CursorType)) {
PyErr_SetString(PyExc_TypeError, "instance of cursor required for first argument");
return NULL;
}