核心AsyncDef组件的公共API。
asyncdef.interfaces的Python项目详细描述
核心asyncdef组件的公共api。
此包包含核心AsyncDef的公共接口定义 组件。此包利用 iface用于定义。项目 此软件包用于 接口比较。
fromasyncdef.interfaces.engineimportiengineassertisinstance(some_implementation,iengine.IEngine)assertiface.isinstance(some_implementation,iengine.IEngine)
接口定义放在这里是为了防止需要导入 实际实现代码,以便检查接口。
许可证
Copyright 2016 Kevin Conway
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0除非适用法律要求或书面同意,否则软件 根据许可证分发是按“原样”分发的, 无任何明示或默示的保证或条件。 有关管理权限的特定语言和 许可下的限制。
贡献
首先,如果你正在修补,那么谢谢你!以下是一些建议 合并修补程序:
风格
只要代码通过pep8和pyflakes门,那么样式就是 可接受的。
文件
pep257门将检查所有公共方法是否都有docstring。如果你是 添加一些新的东西,比如helper函数,试试 napoleon style of docstrings。