def __contains__(self, value: Union[str, '<STR_LIT>']) -> bool:
<EOL>if isinstance(value, str):<EOL><INDENT>return value in self.string<EOL><DEDENT>if self._lststr is not value._lststr:<EOL><INDENT>return False<EOL><DEDENT>ps, pe = value._span<EOL>ss, se = self._span<EOL>if ss <= ps and se >= pe:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Return True if parsed_wikitext is inside self. False otherwise.

        Also self and parsed_wikitext should belong to the same parsed
        wikitext object for this function to return True.