Looking at the docs for pylint 4.0.1 there is no message and no check for unnecessary assignments like in your example.
I'd advise you to message a feature request to the creators of pylint.