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.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for flake8_final-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a4916479a87b8585714a0c0445e0dbef10b51b9289cc20741fc29c3728d65b |
|
MD5 | c3fe9313d9b4f539f435fc4d455166b2 |
|
BLAKE2b-256 | 62bdce0f7fd4c8c5f49a36a7487ae8a3c0fea541f9c246bb0832cd557ae0bb55 |