Skip to content

unused-argument for required argument in __new__ #3670

@mkielg11

Description

@mkielg11

I have a class where I overload the new() call.

The new __new__() call is required to have the same arguments as the __init__(), so after I make some checks, I call super().__new__(cls). In this, the input arguments are implicitly passed on to __init__().
However, I get the unused-argument pylint warning, as I do not use all the arguments within the __new__().

Metadata

Metadata

Assignees

No one assigned

    Labels

    False Positive 🦟A message is emitted but nothing is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions