flake8 plugin for check and inheritance of implementations
Project description
flake8-final
flake8 plugin for check and inheritance of implementations
Inheritance is bad and that composition over inheritance is a good idea
Features
- Fully typed with annotations and checked with mypy, PEP561 compatible
Installation
pip install flake8-final
Example
Wrong:
class Animal(object):
def move(self, to_x: int, to_y: int):
# Some logic for change coordinates
def sound(self):
print('Abstract animal sound')
class Dog(Animal):
def sound(self):
print('bark')
class Cat(Human):
def sound(self):
print('meow')
License
Credits
This project was generated with wemake-python-package. Current template version is: 9899cb192f754a566da703614227e6d63227b933. See what is updated since then.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flake8_final-0.0.3.tar.gz.
File metadata
- Download URL: flake8_final-0.0.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
652c95616199aa4f1bf4ccb60c2cd944797e12dc21b0343f12534e24465b3c43
|
|
| MD5 |
4ddb9dcf77c8adba1b72b642d1a2509d
|
|
| BLAKE2b-256 |
a5e4487558ab03ca54c5f8b277d959fd07ece944fa44384cfd0908e5a1a328d6
|
File details
Details for the file flake8_final-0.0.3-py3-none-any.whl.
File metadata
- Download URL: flake8_final-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48d375a071c5d0193b5d698100d5751896337e9596ec541886c2895be7f19027
|
|
| MD5 |
b5915ee56582a948ad38f53a5ae79ffe
|
|
| BLAKE2b-256 |
a77b1d426852147f4734fede23f2560da7b1715cb52c9df4e4340cdca07e890a
|