从父类继承方法文档的实用程序。

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)
=


*

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java调用方法时,将对象作为参数发送是否比原始变量慢?   如何在Java中的ApacheSpark中将DataFrame转换为Dataset?   使用ExecutorService时使用java。invokeAll是否有一种即使发生异常也可以获取所有响应的方法   javasocket超时在Servlet中不起作用   具有复合实体键的java双向OneToMany关系导致空标识符   java JPA:如何映射SQL Server uniqueidentifier类型   macos通过Mac计算机获取java硬盘序列号?   java如何将值添加到列表<Map<String,Object>>?   java如何在提交表单后将一个jsp页面中的值转换为两个不同的jsp页面?   数据库连接数与Java线程数   java将无序字符串复制到有序字符串的有效方法   java如何从Flink到Kafka编写protobuf字节数组   hashmap java中arraylist的和值   更改字体后不显示java复选框   AppEngine中的java登录   Java扫描器。nextLine()未等待输入