def append()

in distill/segmentation/segments.py [0:0]


    def append(self, item):
        """
        Adds a Segment object to the Segments object.
        :param item: The Segment object to add.
        """
        if not isinstance(item, distill.Segment):
            raise TypeError("Only Segment objects can be added to a Segments object.")

        self.segments.append(item)