本文介绍了记录** kwargs参数的正确方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用狮身人面像和autodoc插件来为我的Python模块生成API文档。虽然我可以看到如何很好的记录具体的参数,我找不到如何记录一个 ** kwargs 参数的示例。
$ b $有没有人有一个清楚的方式来记录这些的一个很好的例子?解决方案我认为 子流程 -module的文档是一个很好的例子。详细列出顶级/父类。那么只需参考该列表,查找所有其他出现的 ** kwargs 。
I'm using sphinx and the autodoc plugin to generate API documentation for my Python modules. Whilst I can see how to nicely document specific parameters, I cannot find an example of how to document a **kwargs parameter.
Does anyone have a good example of a clear way to document these?
解决方案I think subprocess-module's docs is a good example. Give an exhaustive list of all parameters for a top/parent class. Then just refer to that list for all other occurrences of **kwargs.
更多推荐
记录** kwargs参数的正确方法是什么?
发布评论