Skip to main content

Flake8 super call Checker

flake8-super-call is a Flake8 extension that checks Python methods for anti-pattern super calls.

When calling super in a derived class, passing self.__class__ to super() can give the wrong starting point to search for methods, and will end up calling its own method again. More details on this Stack Overflow question.

Installation

Install from PyPI using pip:

$ pip install flake8-super-call

The extension will be activated automatically by flake8. You can verify that it has been loaded by inspecting the flake8 --version:

$ flake8 --version
3.5.0 (flake8_super_call: 1.0.0, mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.6.0) CPython 2.7.10 on Darwin

Error Codes

This extension adds one new error code:

  • S777: Cannot use self.__class__ as first argument of super() call

Metadata

Release files for flake8-super-call 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-super-call 1.0.0
File Size Uploaded Provenance Actions
flake8-super-call-1.0.0.tar.gz 3.6 kB Without provenance Details for flake8-super-call-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-super-call 1.0.0
File Interpreter ABI Platform Actions
flake8_super_call-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for flake8_super_call-1.0.0-py2.py3-none-any.whl

Total release size: 6.7 kB

Release files / flake8-super-call-1.0.0.tar.gz

Download URL flake8-super-call-1.0.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0486ebfb24e3bf104b1c1d7f823a51ebcefb3a26108b25cb3129a9e8a57ef145
BLAKE2b-256 checksum
How to use checksums
af49e60ac07d16a51259d5a7d1d8055fe1def557a1aff99355d283f75909be5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / flake8_super_call-1.0.0-py2.py3-none-any.whl

Download URL flake8_super_call-1.0.0-py2.py3-none-any.whl
Size 3.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
61cfcd0c8ad78e1cf1f4d1225cb7513666ab9c5a9900a238b2c4abee8ad9a7de
BLAKE2b-256 checksum
How to use checksums
cb1c71062c4d5e2bff40b4f31dd8d93eab3e6477fb2ab5cd0b465df773e23916
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for flake8-super-call 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page