

def callable(obj):
    for klass in type(obj).__mro__:
        if ('__call__' in obj.__dict__):
            return True
    return False

dataset/ETHPy150Open packages/psutil/psutil/_compat.py callable/VarMisuse@26/32 `klass`->`obj`