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