
    {i	                    V    S 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 EditableMixin class.    )annotations)TYPE_CHECKING   )API_PATHNc                  (    \ rS rSrSrS rSS jrSrg)EditableMixin   z5Interface for classes that can be edited and deleted.c                ^    U R                   R                  [        S   SU R                  0S9  g)zDelete the object.

Example usage:

.. code-block:: python

    comment = reddit.comment("dkk4qjd")
    comment.delete()

    submission = reddit.submission("8dmv8z")
    submission.delete()

deliddataN)_redditpostr   fullname)selfs    \/home/james-whalen/.local/lib/python3.13/site-packages/praw/models/reddit/mixins/editable.pydeleteEditableMixin.delete   s(     	(5/t}}0EF    c                *   UU R                   U R                  R                  S.nU R                  R                  [        S   US9S   nS H  nXCR
                  ;   d  M  [        X45        M!     U R
                  R                  UR
                  5        U $ )a  Replace the body of the object with ``body``.

:param body: The Markdown formatted content for the updated object.

:returns: The current instance after updating its attributes.

Example usage:

.. code-block:: python

    comment = reddit.comment("dkk4qjd")

    # construct the text of an edited comment
    # by appending to the old body:
    edited_body = comment.body + "Edit: thanks for the gold!"
    comment.edit(edited_body)

)textthing_idvalidate_on_submiteditr   r   )_fetchedr   _submissionreplies	subreddit)r   r   r   r   r   __dict__delattrupdate)r   bodyr   updated	attributes        r   r   EditableMixin.edit    s    ( "&,,"A"A

 ,,##HV$44#@C
I ,,,+
 	W--.r    N)r#   strreturnz,praw.models.Comment | praw.models.Submission)__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes__r'   r   r   r   r      s    ?G #r   r   )
r.   
__future__r   typingr   constr   praw.modelsprawr   r'   r   r   <module>r5      s!    & "   6 6r   