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.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for flake8_final-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43e2e25c85cc1bf0e44c9666eff03da292d3293cca849bcea2cca4f29cc807a6 |
|
MD5 | aa472190efc723f1769bfb75a34442fb |
|
BLAKE2b-256 | 38b1c5acc9cfa580ab97f12ae178e4cb89f40e6d2be698b806c87d1d58091ae7 |