def records(self, has_annotation: Optional[bool] = None) -> List[TextClassificationRecord]:
        """Returns the records corresponding to the weak label matrix

        Args:
            has_annotation: If True, return only the records that have an annotation. If False, return only the records
                that have NO annotation. By default, we return all the records.

        Returns:
            A list of records, or optionally just a part of them.
        """
        if has_annotation is True:
            return [rec for rec in self._records if rec.annotation is not None]
        if has_annotation is False:
            return [rec for rec in self._records if rec.annotation is None]

        return list(self._records)
Returns the records corresponding to the weak label matrix

        Args:
            has_annotation: If True, return only the records that have an annotation. If False, return only the records
                that have NO annotation. By default, we return all the records.

        Returns:
            A list of records, or optionally just a part of them.
        
argilla-v1/src/argilla_v1/labeling/text_classification/weak_labels.py