Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ _PyType_Name(PyTypeObject *type)
return s;
}

static inline PyObject *
static PyObject *
type_name(PyObject *tp, void *Py_UNUSED(closure))
{
PyTypeObject *type = PyTypeObject_CAST(tp);
Expand All @@ -1344,7 +1344,7 @@ type_name(PyObject *tp, void *Py_UNUSED(closure))
}
}

static inline PyObject *
static PyObject *
type_qualname(PyObject *tp, void *Py_UNUSED(closure))
{
PyTypeObject *type = PyTypeObject_CAST(tp);
Expand Down Expand Up @@ -1466,7 +1466,7 @@ _PyType_GetFullyQualifiedName(PyTypeObject *type, char sep)
return PyUnicode_FromString(type->tp_name);
}

PyObject *qualname = type_qualname((PyObject *)type, NULL);
PyObject *qualname = Py_NewRef(((PyHeapTypeObject *)type)->ht_qualname);
if (qualname == NULL) {
return NULL;
}
Expand Down Expand Up @@ -1498,7 +1498,7 @@ PyType_GetFullyQualifiedName(PyTypeObject *type)
return _PyType_GetFullyQualifiedName(type, '.');
}

static inline PyObject *
static PyObject *
type_abstractmethods(PyObject *tp, void *Py_UNUSED(closure))
{
PyTypeObject *type = PyTypeObject_CAST(tp);
Expand Down
Loading