
    ;;i                     ~    d Z ddlZddlmZmZ ddlmZ  ed      Zdee   dee   fdZ	d	ee   d
e
deee      fdZy)zIUtilities for working with data structures like lists, dicts and tuples.
    N)IterableSequence)TypeVarTelemsreturnc                     t        j                  dt        d       t               }g }| D ])  }||vs|j	                  |       |j                  |       + |S )a  uniq_stable(elems) -> list

    .. deprecated:: 9.8
        This function is deprecated and will be removed in a future version.
        It is not used within IPython and was never part of the public API.

    Return from an iterable, a list of all the unique elements in the input,
    but maintaining the order in which they first appear.

    Note: All elements in the input must be hashable for this routine
    to work, as it internally uses a set for efficiency reasons.
    zyuniq_stable is deprecated since IPython 9.8 and will be removed in a future version. It was never part of the public API.   )
stacklevel)warningswarnDeprecationWarningsetaddappend)r   seenresultxs       O/home/rose/Desktop/poly/venv/lib/python3.12/site-packages/IPython/utils/data.pyuniq_stabler      sX     MM	/	 5DFD=HHQKMM!  M    seqsizec                 `    t        dt        |       |      D cg c]
  }| |||z     c}S c c}w )z.Chop a sequence into chunks of the given size.r   )rangelen)r   r   is      r   chopr   0   s4    ',QC$'?@'?!CAH'?@@@s   +)__doc__r   collections.abcr   r   typingr   r   listr   intr    r   r   <module>r%      sf     .  CLx{ tAw 8Ahqk A Ahqk): Ar   