Skip to content

useless-super-delegation when a parameter uses a default value #1085

@PCManticore

Description

@PCManticore

Given the following code, pylint will happily emit an useless-super-delegation message. I think it does not make sense that much though, since we can argue that the overridden method is not useless, since it introduces a parameter with a default value.

def __init__(self, message='...', **kws):
    super().__init__(message, **kws)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions