从父类继承方法文档的实用程序。
python-doc-inherit的Python项目详细描述
一个从父类继承方法文档的实用程序。图片::https://img.shields.io/travis/kavdev/python-doc-inherit/master.svg?style=flat square
:目标:https://travis ci.org/kavdev/python doc inherit
…图片::https://img.shields.io/codecov/c/github/kavdev/python-doc-inherit/master.svg?style=flat square
:目标:http://codecov.io/github/kavdev/python-doc-inherit?分支=主
…图片::https://img.shields.io/requires/github/kavdev/python-doc-inherit.svg?style=flat square
:目标:https://requires.io/github/kavdev/python-doc-inherit/requirements/?分支=主
…图片::https://img.shields.io/codacy/75dbe2685efe47c3aa203a53154c9e7e.svg?style=flat square
:目标:https://www.codacy.com/app/kavanaugh development/python doc inherit/dashboard
…图片::https://img.shields.io/pypi/v/python-doc-inherit.svg?style=flat square
:目标:https://pypi.python.org/pypi/python doc inherit
…图片::https://img.shields.io/pypi/dw/python-doc-inherit.svg?style=flat square
:目标:https://pypi.python.org/pypi/python doc inherit
…图片::https://img.shields.io/github/issues/kavdev/python-doc-inherit.svg?style=flat square
:目标:https://github.com/kavdev/python doc inherit/issues
。图片::https://img.shields.io/github/license/kavdev/python-doc-inherit.svg?style=flat square
:目标:https://github.com/kavdev/python doc inherit/blob/master/license
安装
----
install python doc inherit:
……代码块::bash
usage
----
simple method decorator(将导致其他decorator失败)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~代码块::python
from doc继承导入方法_==bar().foo.\uu doc==foo.foo.\uu doc==“frobber”```
>简单类装饰器
~~~~~~~~~~~~~~~~~~~~~~~~
……代码块::python
from doc_inherit import class_doc_inherit
class foo(对象):
def foo(self):
“frobber”
@class_doc_inherit
class bar(foo):
def foo(self):
pass
`` bar.foo.\uu doc==bar().foo.\uu doc==foo.foo.\uu doc==frobber```
元类
~代码块::python
from doc庘inherit.metaclasses import docstringinheritor
from six import add庘metaclasss注意:此发行版中不包括六个。
class animal:
def move庘to(self,目的地:
“移动到*dest*”
通过
@add_元类(docStringInheritor)
类鸟(动物):
def move_to(self,目的地):
通过
``动物。移到。移到。移到。移到。移到。代码块::bash
./runtests.py
===
>0.1.1(2016-06-18)
=
*小补丁
<0.1.0(2016-06-18)
=
*
:目标:https://travis ci.org/kavdev/python doc inherit
…图片::https://img.shields.io/codecov/c/github/kavdev/python-doc-inherit/master.svg?style=flat square
:目标:http://codecov.io/github/kavdev/python-doc-inherit?分支=主
…图片::https://img.shields.io/requires/github/kavdev/python-doc-inherit.svg?style=flat square
:目标:https://requires.io/github/kavdev/python-doc-inherit/requirements/?分支=主
…图片::https://img.shields.io/codacy/75dbe2685efe47c3aa203a53154c9e7e.svg?style=flat square
:目标:https://www.codacy.com/app/kavanaugh development/python doc inherit/dashboard
…图片::https://img.shields.io/pypi/v/python-doc-inherit.svg?style=flat square
:目标:https://pypi.python.org/pypi/python doc inherit
…图片::https://img.shields.io/pypi/dw/python-doc-inherit.svg?style=flat square
:目标:https://pypi.python.org/pypi/python doc inherit
…图片::https://img.shields.io/github/issues/kavdev/python-doc-inherit.svg?style=flat square
:目标:https://github.com/kavdev/python doc inherit/issues
。图片::https://img.shields.io/github/license/kavdev/python-doc-inherit.svg?style=flat square
:目标:https://github.com/kavdev/python doc inherit/blob/master/license
安装
----
install python doc inherit:
……代码块::bash
usage
----
simple method decorator(将导致其他decorator失败)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~代码块::python
from doc继承导入方法_==bar().foo.\uu doc==foo.foo.\uu doc==“frobber”```
>简单类装饰器
~~~~~~~~~~~~~~~~~~~~~~~~
……代码块::python
from doc_inherit import class_doc_inherit
class foo(对象):
def foo(self):
“frobber”
@class_doc_inherit
class bar(foo):
def foo(self):
pass
`` bar.foo.\uu doc==bar().foo.\uu doc==foo.foo.\uu doc==frobber```
元类
~代码块::python
from doc庘inherit.metaclasses import docstringinheritor
from six import add庘metaclasss注意:此发行版中不包括六个。
class animal:
def move庘to(self,目的地:
“移动到*dest*”
通过
@add_元类(docStringInheritor)
类鸟(动物):
def move_to(self,目的地):
通过
``动物。移到。移到。移到。移到。移到。代码块::bash
===
>0.1.1(2016-06-18)
=
*小补丁
<0.1.0(2016-06-18)
=
*