Ë
    Fü´j.  ã                  óX   — d Z ddlmZ ddlmZ ddlmZ er
ddlZddlmZ  G d„ d«      Z	y)	z!Provide the ReplyableMixin class.é    )Úannotations)ÚTYPE_CHECKING)ÚAPI_PATHN)Úmodelsc                  ó:   — e Zd ZU dZerded<   edd„«       Zdd„Zy)	ÚReplyableMixinzBInterface for :class:`.RedditBase` classes that can be replied to.zpraw.RedditÚ_redditc                 ó   — y )N© )Úselfs    úa/root/workspace/ytshorts/venv/lib/python3.12/site-packages/praw/models/reddit/mixins/replyable.pyÚfullnamezReplyableMixin.fullname   s   € Ø#&ó    c                ó’   — || j                   dœ}| j                  j                  t        d   |¬«      }	 |d   S # t        $ r Y yw xY w)aî  Reply to the object.

        :param body: The Markdown formatted content for a comment.

        :returns: A :class:`.Comment` or :class:`.Message` object for the newly created
            comment or message or ``None`` if Reddit doesn't provide one.

        :raises: ``prawcore.exceptions.Forbidden`` when attempting to reply to some
            items, such as locked submissions/comments or non-replyable messages.

        A ``None`` value can be returned if the target is a comment or submission in a
        quarantined subreddit and the authenticated user has not opt-ed into viewing the
        content. When this happens the comment will be successfully created on Reddit
        and can be retried by drawing the comment from the user's comment history.

        Example usage:

        .. code-block:: python

            submission = reddit.submission("5or86n")
            submission.reply("reply")

            comment = reddit.comment("dxolpyc")
            comment.reply("reply")

        )ÚtextÚthing_idÚcomment)Údatar   N)r   r	   Úpostr   Ú
IndexError)r   Úbodyr   Úcommentss       r   ÚreplyzReplyableMixin.reply   sQ   € ð6 ¨$¯-©-Ñ8ˆØ—<‘<×$Ñ$¤X¨iÑ%8¸tÐ$ÓDˆð	Ø˜A‘;ÐøÜò 	Ùð	ús   µ: º	AÁAN)ÚreturnÚstr)r   r   r   z&models.Comment | models.Message | None)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__annotations__Úpropertyr   r   r   r   r   r   r      s!   … ÙLáàÓà	Ú&ó 
Ø&ô r   r   )
r   Ú
__future__r   Útypingr   Ú
praw.constr   Úprawr   r   r   r   r   ú<module>r&      s$   ðÙ 'å "å  å áÛÝ÷*ò *r   