Skip to content

useless-type-doc conflicts with mypy no-untyped-def, unsure how to proceed #4117

@nth10sd

Description

@nth10sd

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

Labels

Enhancement ✨Improvement to a componentFalse Positive 🦟A message is emitted but nothing is wrong with the code

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions