-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Enhancement ✨Improvement to a componentImprovement to a componentFalse Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the code
Milestone
Description
With pylint 2.7.0, we now have the useless-type-doc check. I also have disallow_untyped_defs = True turned on for mypy.
I have some functions with unused variables that I append a _ to the name, e.g. _name and set a type to them. pylint 2.7.0 now throws useless-type-doc error, and when I remove the type, mypy throws the no-untyped-def error.
What's the best way forward? Should I change the mypy config, or should I ignore this pylint error?
This worked with pylint 2.6.x, since it does not have the useless-type-doc check.
Metadata
Metadata
Assignees
Labels
Enhancement ✨Improvement to a componentImprovement to a componentFalse Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the code