pylint icon indicating copy to clipboard operation
pylint copied to clipboard

Add check for unused module-level private and protected functions

Open socketpair opened this issue 3 years ago • 4 comments

test.py:

def _unused():
    pass
def __unused():
    pass
class _class():
    pass
_some_constant = 42

They should not be imported from anywhere, so if they are not used in the same module - it's definitely a bug.

This file should generate errors about unused private/protected module-level members. Just like private methods #4504

socketpair avatar Jun 03 '21 05:06 socketpair