def position ( self ) -> Position : return Position ( self . _index , self . _lineno , self . _col_offset )
python get cursor position
The current position of the cursor .
def position(self) -> Position:
        """The current position of the cursor."""
        return Position(self._index, self._lineno, self._col_offset)