code: def setEditable(self, editable):
          
          if not isinstance(editable, bool):
              raise TypeError('Argument is not of type bool')
          self._editable = editable
docs: setter to _editable. apply changes while changing dtype.
  
          Raises:
              TypeError: if editable is not of type bool.
  
          Args:
              editable (bool): apply changes while changing dtype.