Skip to content

Commit e0bcfab

Browse files
committed
python: Use nanobind function instead of CPython API
1 parent 2391a00 commit e0bcfab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/python/src/helpers.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type_name_short(nanobind::handle h)
1616
{
1717
namespace nb = nanobind;
1818
assert(h.is_type());
19-
return nb::steal<nb::str>(PyType_GetName((PyTypeObject*)h.ptr()));
19+
return nb::type_name(h);
2020
}
2121
} // namespace detail
2222

0 commit comments

Comments
 (0)