RET501 should exempt overriding class methods #12198
Labels
accepted
Ready for implementation
rule
Implementing or modifying a lint rule
type-inference
Requires more advanced type inference.
If a parent class defines a return type hint for a method, then it makes sense to keep the return None explicit.
This is similar to #3704/#3705, but it involves looking also at the parent classes.
Based on home-assistant/core#115031
The text was updated successfully, but these errors were encountered: