wikitextparser/_wikitext.py
def _pp_type_to_spans(self) -> Dict[str, List[List[int]]]:
        """Create the arguments for the parse function used in pformat method.

        Only return sub-spans and change the them to fit the new scope, i.e
        self.string.
        """
        ss, se = self._span
        if ss == 0 and se == len(self._lststr[0]):
            return deepcopy(self._type_to_spans)
        return {
            type_: [
                [s - ss, e - ss] for s, e in spans[bisect(spans, [ss]):]
                if e <= se
            ] for type_, spans in self._type_to_spans.items()}
def _pp_type_to_spans(self) -> Dict[str, List[List[int]]]:
        ss, se = self._span
        if ss == 0 and se == len(self._lststr[0]):
            return deepcopy(self._type_to_spans)
        return {
            type_: [
                [s - ss, e - ss] for s, e in spans[bisect(spans, [ss]):]
                if e <= se
            ] for type_, spans in self._type_to_spans.items()}
def _pp_type_to_spans ( self ) -> Dict [ str , List [ List [ int ] ] ] : ss , se = self . _span if ss == 0 and se == len ( self . _lststr [ 0 ] ) : return deepcopy ( self . _type_to_spans ) return { type_ : [ [ s - ss , e - ss ] for s , e in spans [ bisect ( spans , [ ss ] ) : ] if e <= se ] for type_ , spans in self . _type_to_spans . items ( ) }
Create the arguments for the parse function used in pformat method.

        Only return sub-spans and change the them to fit the new scope, i.e
        self.string.
Create the arguments for the parse function used in pformat method .