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 2391a00 commit e0bcfabCopy full SHA for e0bcfab
bindings/python/src/helpers.hpp
@@ -16,7 +16,7 @@ type_name_short(nanobind::handle h)
16
{
17
namespace nb = nanobind;
18
assert(h.is_type());
19
- return nb::steal<nb::str>(PyType_GetName((PyTypeObject*)h.ptr()));
+ return nb::type_name(h);
20
}
21
} // namespace detail
22
0 commit comments