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
Prev Previous commit
Next Next commit
address Victor's review
  • Loading branch information
picnixz committed Feb 22, 2025
commit 3a661a38048bfac36c048520a810c8e252029acc
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);
Comment thread
picnixz marked this conversation as resolved.
Outdated
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