def get_frameworks(type_=None):
    frameworks = _lookup_frameworks()

    if type_ is None:
        return frameworks
    else:
        if frameworks not in type_:
            raise exception.UnknownFramework(type_)
        return frameworks[type_]

    return frameworks
dataset/ETHPy150Open platformio/platformio/platformio/util.py/get_frameworks/swapped operands of `not in`