parameters: (self, append)
docstring: validate that we have the same order as the existing & same dtype
docstring_summary: validate that we have the same order as the existing & same dtype
docstring_tokens: validate that we have the same order as the existing & same dtype
function: def validate_attr(self, append):
          """validate that we have the same order as the existing & same dtype"""
          if append:
              existing_fields = getattr(self.attrs, self.kind_attr, None)
              if existing_fields is not None and existing_fields != list(self.values):
                  raise ValueError("appended items do not match existing items in table!")
  
              existing_dtype = getattr(self.attrs, self.dtype_attr, None)
              if existing_dtype is not None and existing_dtype != self.dtype:
                  raise ValueError(
                      "appended items dtype do not match existing "
                      "items dtype in table!"
                  )
function_tokens: def validate_attr ( self , append ) : if append : existing_fields = getattr ( self . attrs , self . kind_attr , None ) if existing_fields is not None and existing_fields != list ( self . values ) : raise ValueError ( "appended items do not match existing items in table!" ) existing_dtype = getattr ( self . attrs , self . dtype_attr , None ) if existing_dtype is not None and existing_dtype != self . dtype : raise ValueError ( "appended items dtype do not match existing " "items dtype in table!" )