
    {i+                    t    S r SSKJr  SSKJrJr  SSKJr  SSKJ	r	  SSK
Jr  \(       a  SS	Kr " S
 S\5      rg	)zProvide the MoreComments class.    )annotations)TYPE_CHECKINGAny   )API_PATH)_deprecate_args   )PRAWBaseNc                     ^  \ rS rSrSrSU 4S jjrSU 4S jjrSS jrSS jrSS jr	SS	 jr
\" S5      S
S.SS jj5       rSrU =r$ )MoreComments   z+A class indicating there are more comments.c                   > [        XR                  5      (       a9  U R                  UR                  :H  =(       a    U R                  UR                  :H  $ [        TU ]  U5      $ )zGReturn ``True`` if these :class:`.MoreComments` instances are the same.)
isinstance	__class__countchildrensuper__eq__)selfotherr   s     Q/home/james-whalen/.local/lib/python3.13/site-packages/praw/models/reddit/more.pyr   MoreComments.__eq__   sF    e^^,,::,P%..1PPw~e$$    c                f   > S=U l         U l        / U l        [        TU ]  XS9  SU l        SU l        g)z-Initialize a :class:`.MoreComments` instance.N)_data)r   	parent_idr   r   __init__	_comments
submission)r   redditr   r   s      r   r   MoreComments.__init__   s6    &**
T^-r   c                4    U R                   UR                   :  $ )z:Provide a sort order on the :class:`.MoreComments` object.)r   )r   r   s     r   __lt__MoreComments.__lt__    s    
 zzEKK''r   c                    U R                   SS n[        U R                   5      S:  a  SUS'   SU R                  R                   SU R                   SU< S3$ )	z?Return an object initialization representation of the instance.N   z...<z count=z, children=>)r   lenr   __name__r   )r   r   s     r   __repr__MoreComments.__repr__'   sW    ==!$t}}! HRL4>>**+74::,k(UVWWr   updatec                   U R                   (       a   S5       eU R                  U R                  R                  SS5      S   5      nUR                  U l        U(       a$  U R
                   H  nU R                  Ul        M     U R
                  $ )N#Please file a bug report with PRAW._   )r   _load_commentr   splitrepliesr   r   )r   r.   parentcomments       r   _continue_commentsMoreComments._continue_comments.   sm    ==G"GG ##DNN$8$8a$@$CD>>%)__" *~~r   c                L   [         S   R                  U R                  R                  S9 SU 3nU R                  R                  UU R                  R                  U R                  R                  S.S9u  p4[        UR                  5      S:X  d   S5       eUR                  S   $ )	Nr   )idz_/)limitsort)paramsr2   r0   r   )
r   formatr   r;   _redditgetcomment_limitcomment_sortr*   r   )r   
comment_idpathr1   commentss        r   r3   MoreComments._load_comment7   s    <(//4??3E3E/FGr*Vll&&6644 ' 
 8$$%*Q,QQ*  ##r   T)r.   c                  U R                   c  U R                  S:X  a  U R                  U5      $ U R                  (       d   S5       eSR	                  U R                  5      U R
                  R                  U R
                  R                  S.nU R                  R                  [        S   US9U l         U(       a$  U R                    H  nU R
                  Ul        M     U R                   $ )zIFetch and return the comments for a single :class:`.MoreComments` object.r   r0   ,)r   link_idr=   morechildren)data)r   r   r8   r   joinr   fullnamerC   r@   postr   )r   r.   rL   r7   s       r   rF   MoreComments.commentsC   s     >>!zzQ..v66==G"GG=HHT]]3??3344D
 "\\..x/Gd.SDN#~~G)-G&  .~~r   )r   r   r   r   r   )r   zstr | MoreCommentsreturnbool)r    zpraw.Redditr   zdict[str, Any])r   r   rQ   rR   )rQ   str)r.   rR   )rD   rS   )r.   rR   rQ   zlist[praw.models.Comment])r+   
__module____qualname____firstlineno____doc__r   r   r#   r,   r8   r3   r   rF   __static_attributes____classcell__)r   s   @r   r   r      sA    5%(X
$ X)-  r   r   )rW   
__future__r   typingr   r   constr   utilr   baser
   praw.modelsprawr    r   r   <module>rb      s+    % " %  # D8 Dr   