Ë
    Fü´jó  ã                  óT   — d Z ddlmZ ddlmZmZ erddlmZ ddlm	Z	  G d„ d«      Z
y)	zProvide the ModNoteMixin class.é    )Úannotations)ÚTYPE_CHECKINGÚAny)ÚIterator)Úmodelsc                  ó6   — e Zd ZU dZerded<   dd„Zddœd	d„Zy)
ÚModNoteMixinzAInterface for classes that can have a moderator note set on them.z"models.Comment | models.SubmissionÚthingc                ó    —  | j                   j                  j                  j                  j                  | j                   j
                  fi |¤ŽS )a  Get the moderator notes for the author of this object in the subreddit it's posted in.

        :param generator_kwargs: Additional keyword arguments are passed in the
            initialization of the moderator note generator.

        :returns: A generator of :class:`.ModNote`.

        For example, to list all notes the author of a submission, try:

        .. code-block:: python

            for note in reddit.submission("92dd8").mod.author_notes():
                print(f"{note.label}: {note.note}")

        )r
   Ú	subredditÚmodÚnotesÚ	redditorsÚauthor)ÚselfÚgenerator_kwargss     ú_/root/workspace/ytshorts/venv/lib/python3.12/site-packages/praw/models/reddit/mixins/modnote.pyÚauthor_noteszModNoteMixin.author_notes   s=   € ð  8ˆt�z‰z×#Ñ#×'Ñ'×-Ñ-×7Ñ7¸¿
¹
×8IÑ8IÑ^ÐM]Ñ^Ð^ó    N)Úlabelc               ó’   —  | j                   j                  j                  j                  j                  d||| j                   dœ|¤ŽS )a~  Create a moderator note on the author of this object in the subreddit it's posted in.

        :param label: The label for the note. As of this writing, this can be one of the
            following: ``"ABUSE_WARNING"``, ``"BAN"``, ``"BOT_BAN"``,
            ``"HELPFUL_USER"``, ``"PERMA_BAN"``, ``"SOLID_CONTRIBUTOR"``,
            ``"SPAM_WARNING"``, ``"SPAM_WATCH"``, or ``None`` (default: ``None``).
        :param note: The content of the note. As of this writing, this is limited to 250
            characters.
        :param other_settings: Additional keyword arguments are passed to
            :meth:`~.BaseModNotes.create`.

        :returns: The new :class:`.ModNote` object.

        For example, to create a note on a :class:`.Submission`, try:

        .. code-block:: python

            reddit.submission("92dd8").mod.create_note(label="HELPFUL_USER", note="Test note")

        )r   Únoter
   © )r
   r   r   r   Úcreate)r   r   r   Úother_settingss       r   Úcreate_notezModNoteMixin.create_note&   sA   € ð* 5ˆt�z‰z×#Ñ#×'Ñ'×-Ñ-×4Ñ4Ðp¸5ÀtÐSW×S]ÑS]ÑpÐaoÑpÐpr   )r   r   ÚreturnzIterator[models.ModNote])r   z
str | Noner   Ústrr   r   r   zmodels.ModNote)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__annotations__r   r   r   r   r   r	   r	      s   … ÙKáà1Ó1ó_ð$ 26ö qr   r	   N)r"   Ú
__future__r   Útypingr   r   Úcollections.abcr   Úprawr   r	   r   r   r   ú<module>r(      s#   ðÙ %å "ç %áÝ(å÷.qò .qr   