def _check_permissions_attr(self):
        if self.permissions is None or not isinstance(self.permissions, dict):
            raise ImproperlyConfigured(
                '{0} requires the "permissions" attribute to be set as a '
                'dict.'.format(self.__class__.__name__))
Check permissions attribute is set and that it is a dict.
dataset/ETHPy150Open brack3t/django-braces/braces/views/_access.py/MultiplePermissionsRequiredMixin._check_permissions_attr