docs: def set(self, name, permission):
          """
          Adds permission with the given name to the set. Permission with the same name will be overridden.
          Args:
              name: name of the permission
              permission: permission instance
          """
          assert isinstance(permission, BasePermission), 'Only permission instances can be added to the set'
  
          self._permissions[name] = permission