def __delitem__(self, key: Union[slice, int]) -> None:
start, stop = self._check_index(key)<EOL>lststr = self._lststr<EOL>lststr0 = lststr[<NUM_LIT:0>]<EOL>lststr[<NUM_LIT:0>] = lststr0[:start] + lststr0[stop:]<EOL>self._shrink_update(start, stop)<EOL>
Remove the specified range or character from self.string.

        Note: If an operation involves both insertion and deletion, it'll be
        safer to use the `insert` function first. Otherwise there is a
        possibility of insertion into the wrong spans.