Skip to main content

flake8 plugin for check and inheritance of implementations

Project description

flake8-final

Build Status codecov Python Version wemake-python-styleguide

flake8 plugin for check and inheritance of implementations

Inheritance is bad and that composition over inheritance is a good idea

yegor256 blog post

Features

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

MIT

Credits

This project was generated with wemake-python-package. Current template version is: 9899cb192f754a566da703614227e6d63227b933. See what is updated since then.

Project details


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)

Uploaded Source

Built Distribution

flake8_final-0.0.1-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page