
    {i$                    v    S r SSKJr  SSKJr   " S S5      r " S S\5      r " S	 S
\5      r " S S\5      rg)z(Provide classes related to inline media.    )annotations   )_deprecate_argsc                  d    \ rS rSrSrSrSS jr\" SS5      SS.SS jj5       rSS	 jr	SS
 jr
Srg)InlineMedia   z,Provides a way to embed media in self posts.Nc                2   ^ ^ [        UU 4S jS 5       5      $ )z5Return whether the other instance equals the current.c              3  V   >#    U  H  n[        TU5      [        TU5      :H  v   M      g 7f)N)getattr).0attrotherselfs     Y/home/james-whalen/.local/lib/python3.13/site-packages/praw/models/reddit/inline_media.py	<genexpr>%InlineMedia.__eq__.<locals>.<genexpr>   s+      
? D$75$#77?s   &))TYPEpathcaptionmedia_id)all)r   r   s   ``r   __eq__InlineMedia.__eq__   s     
?
 
 	
    r   r   )r   c               *    X l         Xl        SU l        g)zInitialize an :class:`.InlineMedia` instance.

:param caption: An optional caption to add to the image (default: ``None``).
:param path: The path to a media file.

N)r   r   r   )r   r   r   s      r   __init__InlineMedia.__init__   s     	r   c                R    SU R                   R                   SU R                  < S3$ )z?Return an object initialization representation of the instance.<z	 caption=>)	__class____name__r   r   s    r   __repr__InlineMedia.__repr__    s'    4>>**+9T\\4DAFFr   c                    SU R                    SU R                   SU R                  (       a  U R                   S3$ S S3$ )z?Return a string representation of the media in Markdown format.z

![z](z " z")

)r   r   r   r#   s    r   __str__InlineMedia.__str__$   s@    		{"T]]O2dlldll5[[abbXZ5[[abbr   )r   r   r   )r   r   returnbool)r   strr   r,   )r*   r,   )r"   
__module____qualname____firstlineno____doc__r   r   r   r   r$   r(   __static_attributes__ r   r   r   r      s9    6D
 VY')- 	 (	Gcr   r   c                      \ rS rSrSrSrSrg)	InlineGif)   z(Class to provide a gif to embed in text.gifr2   Nr"   r-   r.   r/   r0   r   r1   r2   r   r   r4   r4   )   s
    2Dr   r4   c                      \ rS rSrSrSrSrg)InlineImage/   z+Class to provide am image to embed in text.imgr2   Nr7   r2   r   r   r9   r9   /   s
    5Dr   r9   c                      \ rS rSrSrSrSrg)InlineVideo5   z*Class to provide a video to embed in text.videor2   Nr7   r2   r   r   r=   r=   5   s
    4Dr   r=   N)	r0   
__future__r   utilr   r   r4   r9   r=   r2   r   r   <module>rB      s?    . " "c cB + + r   