docs: def set_data(self, data):
          """
          Update the data attribute, making sure it's a dictionary.
          """
          # Make sure a dict got passed it
          if not isinstance(data, type({})):
              raise TypeError("This attribute must be a dictionary.")
          # Set the attribute
          self.__dict__['data'] = DocumentDataDict(data)