Do not diagnose no-self-use or unused-argument for methods of generic structural types (Protocol[T]) #3885
Labels
Bug 🪲
Enhancement ✨
Improvement to a component
False Positive 🦟
A message is emitted but nothing is wrong with the code
This is a follow-up to #3002, which addressed the basic issue, but there's a special case that is still broken: when a protocol class is a generic, i.e., it inherits not simply from
Protocol
but fromProtocol[T]
or some other generic form ofProtocol
.Steps to reproduce
Current behavior
Expected behavior
No diagnostics.
pylint --version output
The text was updated successfully, but these errors were encountered: