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
https://github.com/meanmail/flake8-super https://meanmail.dev/
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 Distribution
flake8_super-0.1.1.tar.gz
(2.2 kB
view hashes)