小编徐力有*_*徐力有的帖子

sphinx 删除自动模块中 args 的模块前缀

我知道如何通过设置“add_module_names = False”来删除 automodule 指令中函数的模块前缀。 从 sphinx 函数中删除包和模块名称

但是,它无法删除 automodule 指令中 args 的模块前缀。下面是automodule生成的文档。

你可以看到 self arg 的数据类型有一个很长的前缀,比如“PyPhysLeo.data_core”。


data_core 子模块

class BufferDataD 同时管理 CPU 缓冲区和 GPU 缓冲区的类,数据类型为 double

CPU2GPU(自我:PyPhysLeo.data_core.BufferDataD)?没有任何

GPU2CPU(自我:PyPhysLeo.data_core.BufferDataD)?没有任何

分配CPU(自我:PyPhysLeo.data_core.BufferDataD)?没有任何

分配GPU(自我:PyPhysLeo.data_core.BufferDataD)?没有任何

setZeroCPU(self: PyPhysLeo.data_core.BufferDataD) ?没有任何

setZeroGPU(自我:PyPhysLeo.data_core.BufferDataD)?没有任何

大小(自我:PyPhysLeo.data_core.BufferDataD)?整数

python python-sphinx pybind11

5
推荐指数
1
解决办法
1293
查看次数

标签 统计

pybind11 ×1

python ×1

python-sphinx ×1