← Back
Editing: utils.cpython-311.pyc
� �Ïc^ � � � d dl mZmZmZmZmZmZmZ d dlm Z erd dl mZ dgZ ede �� � Z G d� dee � � Zd ee d ee fd�ZdS ) � )� TYPE_CHECKING�Iterable�List�TypeVar�Union�cast�overload)�OneStyleAndTextTuple)� SupportsIndex�explode_text_fragments�_T)�boundc � � � e Zd ZdZdZdeddfd�Zdee ddf� fd�Zd d deddfd�Z e d d deddfd �� � Ze d edee ddfd�� � Zd e d ef de eee f ddf� fd�Z� xZS )� _ExplodedListz� Wrapper around a list, that marks it as 'exploded'. As soon as items are added or the list is extended, the new items are automatically exploded as well. T�item�returnNc �2 � | � |g� � d S �N)�extend)�selfr s �=/usr/lib/python3/dist-packages/prompt_toolkit/layout/utils.py�appendz_ExplodedList.append s � ����T�F������ �lstc �d �� t � � � t |� � � � d S r )�superr r )r r � __class__s �r r z_ExplodedList.extend s( �� � �����-�c�2�2�3�3�3�3�3r �indexr c � � t �r )�NotImplementedError)r r r s r �insertz_ExplodedList.insert s � �!�!r �valuec � � d S r � �r r r"