wemake-services / wemake-python-styleguide

The strictest and most opinionated python linter ever!
https://wemake-python-styleguide.rtfd.io
MIT License
2.55k stars 378 forks source link

WPS612 false positive for keyword arguments with different default values #2478

Open simon-liebehenschel opened 2 years ago

simon-liebehenschel commented 2 years ago

What's wrong

I already wrote all in details for Pylint, please read: https://github.com/PyCQA/pylint/issues/7287

class Foo:
    def __init__(*, bar = 10):
         ...

class Child(Foo):
    def __init__(*, bar = 99999):
         super().__init__(bar=bar)

How it should be

no warnings

Flake8 version and plugins

not relevant

pip information

not relevant

OS information

not relevant

Valerii-Denisov commented 1 year ago

Good afternoon. I will try to fix this bug.