sphinx-autodoc-typehints:类型提示支持Sphinx autodoc扩展

时间:2021-04-29 08:39:29
【文件属性】:
文件名称:sphinx-autodoc-typehints:类型提示支持Sphinx autodoc扩展
文件大小:24KB
文件格式:ZIP
更新时间:2021-04-29 08:39:29
Python 狮身人面像autodoc类型提示 此扩展允许您使用Python 3注释来记录可接受的参数类型和函数的返回值类型。 这允许您以非常自然的方式使用类型提示,从而可以从中进行迁移: def format_unit ( value , unit ): """ Formats the given value as a human readable string using the given units. :param float|int value: a numeric value :param str unit: the unit for the value (kg, m, etc.) :rtype: str """ return '{} {}' . format ( value , unit ) 对此: from typing im
【文件预览】:
sphinx-autodoc-typehints-master
----README.rst(5KB)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----CHANGELOG.rst(6KB)
----pre-commit-config.sample.yaml(699B)
----tox.ini(310B)
----LICENSE(1KB)
----setup.cfg(1KB)
----setup.py(239B)
----sphinx_autodoc_typehints.py(17KB)
----tests()
--------conftest.py(2KB)
--------test_sphinx_autodoc_typehints.py(18KB)
--------roots()
----.gitignore(135B)
----pyproject.toml(342B)

网友评论