False positive unused-argument
in dataclass
__new__
#9843
Labels
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
Uh oh!
There was an error while loading. Please reload this page.
Bug description
Looks like #3670 is not quite solved for classes that dynamically define an
__init__
. While this is probably complex to handle in the general case,dataclasses
are a common use case that could be handled in a specific manner. Here a minimal example:The current solution for not emitting
unused-argument
for__new__
(added in #8542) is atpylint/pylint/checkers/variables.py
Lines 2735 to 2747 in c25bef3
Configuration
No response
Command used
Pylint output
Expected behavior
No
unused-argument
fordataclass
__new__
.Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: