Skip to main content

Python 3 super() check for flake8

Project description

flake8-super

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

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


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

flake8_super-0.1.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file flake8_super-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: flake8_super-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for flake8_super-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 595cd65af908574867accfaa3ea2b3e4790637711859306550dc433d9105cbba
MD5 697c797134d3ff014d08b41fd8444e7b
BLAKE2b-256 4f4496e6933425f4ae28f8eab69aa7b7bb7d04ca668ffe01b1a9005e95f6366b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page