Detect useless copy/deepcopy #9509
Labels
Discussion 🤔
Enhancement ✨
Improvement to a component
Needs decision 🔒
Needs a decision before implemention or rejection
Current problem
I have seen code where a copy/deepcopy of an immutable data is made. As far as I understand, it is a useless operation.
Desired solution
Pylint should detect when copy/deepcopy of an immutable object is made and generate an error.
Additional context
No response
The text was updated successfully, but these errors were encountered: