跳至主要内容

Python 3 super() 检查 for flake8

项目描述

flake8-super

Downloads PyPI PyPI - Python Version PyPI - Wheel PyPI - Implementation

Python 3 super() 检查 for flake8

安装

pip install flake8-super

配置

无需配置

示例

#  Error
class SomeClass:
    def __init__(self):
        super(SomeClass, self).__init__()  # SPR100 Use `super()` instead of `super(__class__, self)`


# Good
class SomeClass:
    def __init__(self):
        super().__init__()

错误代码

code 描述
SPR100 使用 super() 而不是 super(__class__, self)

链接

https://github.com/meanmail/flake8-super

https://meanmail.dev/

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分布

此版本没有可用的源代码分布文件。请参阅 生成分布存档的教程

构建分布

flake8_super-0.1.3-py3-none-any.whl (3.4 kB 查看哈希值)

上传时间: Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面