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 Distribution
flake8_super-0.1.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for flake8_super-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 643d409fa91748b9ca283c05bd90e18a23ea16f7df8f1c13de138d3dcbcbef6e |
|
MD5 | 9e855a03f4359c52b6575a1ffee6c71d |
|
BLAKE2b-256 | 320e65be7313fe486bc648cee6c78388ec6b25cc4211a968ec8c7b2503b71064 |