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
flake8_final-0.0.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for flake8_final-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48d375a071c5d0193b5d698100d5751896337e9596ec541886c2895be7f19027 |
|
MD5 | b5915ee56582a948ad38f53a5ae79ffe |
|
BLAKE2b-256 | a77b1d426852147f4734fede23f2560da7b1715cb52c9df4e4340cdca07e890a |