Ë
    Fü´j  ã                  óL   — d Z ddlmZ ddlmZ ddlmZ erddlZ G d„ d«      Zy)zProvide the SavableMixin class.é    )Úannotations)ÚTYPE_CHECKING)ÚAPI_PATHNc                  óH   — e Zd ZU dZerded<   ed	d„«       Zddœd
d„Zdd„Z	y)ÚSavableMixinz=Interface for :class:`.RedditBase` classes that can be saved.zpraw.RedditÚ_redditc                 ó   — y )N© ©Úselfs    ú_/root/workspace/ytshorts/venv/lib/python3.12/site-packages/praw/models/reddit/mixins/savable.pyÚfullnamezSavableMixin.fullname   s   € Ø#&ó    N)Úcategoryc               óf   — | j                   j                  t        d   || j                  dœ¬«       y)aå  Save the object.

        :param category: The category to save to. If the authenticated user does not
            have Reddit Premium this value is ignored by Reddit (default: ``None``).

        Example usage:

        .. code-block:: python

            submission = reddit.submission("5or86n")
            submission.save(category="view later")

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

        .. seealso::

            :meth:`.unsave`

        Úsave)r   Úid©ÚdataN©r   Úpostr   r   )r   r   s     r   r   zSavableMixin.save   s)   € ð* 	�‰×Ñœ( 6Ñ*¸hÈdÏmÉmÑ1\ÐÕ]r   c                ód   — | j                   j                  t        d   d| j                  i¬«       y)a)  Unsave the object.

        Example usage:

        .. code-block:: python

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

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

        .. seealso::

            :meth:`.save`

        Úunsaver   r   Nr   r   s    r   r   zSavableMixin.unsave.   s)   € ð$ 	�‰×Ñœ( 8Ñ,°D¸$¿-¹-Ð3HÐÕIr   )ÚreturnÚstr)r   z
str | Noner   ÚNone)r   r   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__annotations__Úpropertyr   r   r   r
   r   r   r   r      s+   … ÙGáàÓà	Ú&ó 
Ø&à-1õ ^ô.Jr   r   )	r    Ú
__future__r   Útypingr   Ú
praw.constr   Úprawr   r
   r   r   ú<module>r'      s#   ðÙ %å "å  å áÛ÷3Jò 3Jr   