标签:sphinx-apidoc
-
如何在Sphinx文档中自动添加参数类型 - python
我目前正在尝试使用Sphinx实现自动文档创建(使用扩展名sphinx-apidoc和napoleon)。这很好用,但是如果将typehints(PEP484约定)自动添加到params列表中会更好。 我想知道这是否可能。 更具体地说:(来自napoleon example) def function_with_pep484_type_annotations […]
我目前正在尝试使用Sphinx实现自动文档创建(使用扩展名sphinx-apidoc和napoleon)。这很好用,但是如果将typehints(PEP484约定)自动添加到params列表中会更好。 我想知道这是否可能。 更具体地说:(来自napoleon example) def function_with_pep484_type_annotations […]