Python 3 super() check for flake8
Project description
flake8-super
Python 3 super() check for flake8
Installation
pip install flake8-super
Configuration
No configuration required
Example
# 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__()
Error codes
code | description |
---|---|
SPR100 | Use super() instead of super(__class__, self) |
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for flake8_super-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 595cd65af908574867accfaa3ea2b3e4790637711859306550dc433d9105cbba |
|
MD5 | 697c797134d3ff014d08b41fd8444e7b |
|
BLAKE2b-256 | 4f4496e6933425f4ae28f8eab69aa7b7bb7d04ca668ffe01b1a9005e95f6366b |