关键词:plugin to enforce consistent type annotation styles

flake8-type-annotations的Python项目详细描述


flake8类型注释

wemake.servicesBuild StatusCoveragePython VersionPyPI version

此工具用于验证类型批注语法 原来是originally proposed 通过Guido van Rossum

安装

pip install flake8-type-annotations

代码示例

# Consistency with this plugin:deffunction(param=0,other:int=0)->int:returnparam+other# Possible errors without this plugin:deffunction(param=0,other:int=0)->int:returnparam+other

错误代码

Error codeDescription
T800Missing spaces between parameter annotation and default value
T801Missing spaces in return type annotation

许可证

麻省理工学院。

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

推荐PyPI第三方库


热门话题
java实际值和参数列表的长度不同   java使用类。要在其中加载文件的getResource()。罐子   java如何扩展ActionBarActivity和ListActivity?   在使用Java的RSA OAEP加密中为标签提供价值的加密   java如何将LinkedHasMap值按正确的顺序转换为ArrayList/Array?   java JAXWS使用特定于实现的API(如CXF)调用Web服务   java安卓文件存储   windows Java控制台应用程序已锁定   java如何知道所有的记录都被插入其中一条记录,而不是在批插入中插入   java如何从javafx中的切换按钮获取文本   泛型为什么流。生成使用非变量,但可选。orElseGet在Java8中使用协方差   从java selenium web驱动程序最大化站点窗口大小   java Android gridview/imageholder动态布局