code: def _update_parent_attachments(self):
          
          try:
              self._parent.has_attachments = bool(len(self.__attachments))
          except AttributeError:
              pass
docs: Tries to update the parent property 'has_attachments'