def matches(self, permissions):
        check = False
        for perm in self:
            if hasattr(perm, 'matches'):
                check |= perm.matches(permissions)
            else:
                check |= perm in permissions
        return check
dataset/ETHPy150Open spiral-project/daybed/daybed/permissions.py/Any.matches/original