Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up所有api的__doc__属性应该被填充,为IDE智能提示准备 #997
Open
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pyscript文件夹下建立一个头文件, 命名为
py_docs.h:
然后将所有api的英文描述写入,PyDoc_STRVAR。
未来如果有其他文档资源, 当前可以通过api文档生成这个py_docs.h
ENTITY_METHOD_DECLARE_BEGIN(Baseapp, Entity)
SCRIPT_METHOD_DECLARE("createCellEntity", createCellEntity, METH_VARARGS, 0, createCellEntity_docs)
SCRIPT_METHOD_DECLARE("createCellEntityInNewSpace", createCellEntityInNewSpace, METH_VARARGS, 0, createCellEntityInNewSpace_docs)