
    {i^                    `    S r SSKJr  SSKJrJrJr  SSKJr  \(       a  SSK	r	 " S S\5      r
g)	zProvide the BaseList class.    )annotations)TYPE_CHECKINGAnyIterator   )PRAWBaseNc                  f   ^  \ rS rSrSrSrSS jrSS jrSU 4S jjrSS jr	SS jr
SS	 jrS
rU =r$ )BaseList   z=An abstract class to coerce a list into a :class:`.PRAWBase`.Nc                2    U[        X R                  5      ;   $ )z Test if item exists in the list.getattrCHILD_ATTRIBUTE)selfitems     O/home/james-whalen/.local/lib/python3.13/site-packages/praw/models/list/base.py__contains__BaseList.__contains__   s    wt%9%9:::    c                2    [        X R                  5      U   $ )z.Return the item at position index in the list.r   )r   indexs     r   __getitem__BaseList.__getitem__   s    t112599r   c                   > [         TU ]  XS9  U R                  c  Sn[        U5      e[	        X R                  5      n[        U5       H"  u  pVUR                  R                  U5      XE'   M$     g)z\Initialize a :class:`.BaseList` instance.

:param reddit: An instance of :class:`.Reddit`.

)_dataNzBaseList must be extended.)super__init__r   NotImplementedErrorr   	enumerate	_objector	objectify)r   redditr   msg
child_listr   r   	__class__s          r   r   BaseList.__init__   sk     	-'.C%c**T#7#78
$Z0KE & 0 0 : :4 @J 1r   c                H    [        X R                  5      R                  5       $ )zReturn an iterator to the list.)r   r   __iter__r   s    r   r(   BaseList.__iter__*   s    t112;;==r   c                >    [        [        X R                  5      5      $ )z'Return the number of items in the list.)lenr   r   r)   s    r   __len__BaseList.__len__.       74!5!5677r   c                >    [        [        X R                  5      5      $ )z+Return a string representation of the list.)strr   r   r)   s    r   __str__BaseList.__str__2   r/   r    )r   r   returnbool)r   intr5   r   )r"   zpraw.Redditr   zdict[str, Any])r5   zIterator[Any])r5   r7   )r5   r1   )__name__
__module____qualname____firstlineno____doc__r   r   r   r   r(   r-   r2   __static_attributes____classcell__)r%   s   @r   r
   r
      s/    GO;:A >88 8r   r
   )r<   
__future__r   typingr   r   r   baser   prawr
   r4   r   r   <module>rC      s&    ! " / / '8x '8r   