code: def setDeclaration(self, declaration):
          
          assert isinstance(declaration.proxy, ProxyAbstractItemView), \
              "The model declaration must be a QtAbstractItemView subclass. " \
              "Got {]".format(declaration)
  
          self.declaration = declaration
docs: Set the declaration this model will use for rendering
          the the headers.