wikitextparser/_wikitext.py
def comments(self) -> List['Comment']:
        """Return a list of comment objects."""
        _lststr = self._lststr
        _type_to_spans = self._type_to_spans
        return [
            Comment(_lststr, _type_to_spans, span, 'Comment')
            for span in self._subspans('Comment')]
def comments(self) -> List['Comment']:
        _lststr = self._lststr
        _type_to_spans = self._type_to_spans
        return [
            Comment(_lststr, _type_to_spans, span, 'Comment')
            for span in self._subspans('Comment')]
def comments ( self ) -> List [ 'Comment' ] : _lststr = self . _lststr _type_to_spans = self . _type_to_spans return [ Comment ( _lststr , _type_to_spans , span , 'Comment' ) for span in self . _subspans ( 'Comment' ) ]
Return a list of comment objects.
Return a list of comment objects .