Support for checking construction of NamedTuple/namedtuple #10239
Labels
False Negative 🦋
No message is emitted but something is wrong with the code
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Current problem
When using a dataclass PyLint supports
unexpected-keyword-arg
andno-value-for-parameter
when constructing such a classFor a
collections.namedtuple
ortyping.NamedTuple
this does not trigger. See this code:Desired solution
For both the last lines
unexpected-keyword-arg
andno-value-for-parameter
should be shown.Additional context
No response
The text was updated successfully, but these errors were encountered: