def _hasattr(C, attr):
    try:
        return any(attr in B.__dict__ for B in C.__mro__)
    except __HOLE__:
        # Old-style class
        return hasattr(C, attr)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/_abcoll.py/_hasattr