Improve dict-init-mutate
msg suggestion
#7819
Labels
Enhancement ✨
Improvement to a component
Good first issue
Friendly and approachable by new contributors
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Current problem
This PR added the
dict-init-mutate
check with a basic msg ofDeclare all known key/values when initializing the dictionary.
. This issue is to improve that message to read something more likeDeclare all known key/values when initializing the dictionary with 'config = {'dir': 'bin', 'user': 'me', 'workers': 5}'
which will require building the dictionary from nodes.Desired solution
Use suggestion provided here https://github.com/PyCQA/pylint/pull/7794/files#r1027348441 to add code to
DictInitMutateChecker
to improve the msg suggestion.Additional context
No response
The text was updated successfully, but these errors were encountered: