PyDoc: clarify the "capsule" return type

This commit is contained in:
Campbell Barton
2025-04-02 03:02:04 +00:00
parent e58574e1aa
commit cf7d119e94

View File

@@ -201,6 +201,9 @@ PyDoc_STRVAR(
"(specific error codes from the ``os`` module can also be used).\n"
" :type execute: callable\n"
" :return: The command handle which can be passed to :func:`unregister_cli_command`.\n"
"\n"
" This uses Python's capsule type "
"however the result should be considered an opaque handle only used for unregistering.\n"
" :rtype: capsule\n");
static PyObject *bpy_cli_command_register(PyObject * /*self*/, PyObject *args, PyObject *kw)
{