Ë
    Fü´jž	  ã                  ó`   — d Z ddlmZ ddlmZmZ ddlmZ erddlm	Z	 ddl
mZ  G d„ d«      Zy	)
z"Provide the SubredditStream class.é    )Úannotations)ÚTYPE_CHECKINGÚAny)Ústream_generator)ÚIterator)Úmodelsc                  ó(   — e Zd ZdZdd„Zdd„Zdd„Zy)	ÚSubredditStreamz(Provides submission and comment streams.c                ó   — || _         y)z€Initialize a :class:`.SubredditStream` instance.

        :param subreddit: The subreddit associated with the streams.

        N)Ú	subreddit)Úselfr   s     úa/root/workspace/ytshorts/venv/lib/python3.12/site-packages/praw/models/reddit/subreddit/stream.pyÚ__init__zSubredditStream.__init__   s   € ð #ˆ�ó    c                óB   — t        | j                  j                  fi |¤ŽS )a�  Yield new comments as they become available.

        Comments are yielded oldest first. Up to 100 historical comments will initially
        be returned.

        Keyword arguments are passed to :func:`.stream_generator`.

        .. note::

            While PRAW tries to catch all new comments, some high-volume streams,
            especially the r/all stream, may drop some comments.

        For example, to retrieve all new comments made to r/test, try:

        .. code-block:: python

            for comment in reddit.subreddit("test").stream.comments():
                print(comment)

        To only retrieve new submissions starting when the stream is created, pass
        ``skip_existing=True``:

        .. code-block:: python

            subreddit = reddit.subreddit("test")
            for comment in subreddit.stream.comments(skip_existing=True):
                print(comment)

        )r   r   Úcomments©r   Ústream_optionss     r   r   zSubredditStream.comments   s   € ô<   §¡× 7Ñ 7ÑJ¸>ÑJÐJr   c                óB   — t        | j                  j                  fi |¤ŽS )a‹  Yield new :class:`.Submission`\ s as they become available.

        Submissions are yielded oldest first. Up to 100 historical submissions will
        initially be returned.

        Keyword arguments are passed to :func:`.stream_generator`.

        .. note::

            While PRAW tries to catch all new submissions, some high-volume streams,
            especially the r/all stream, may drop some submissions.

        For example, to retrieve all new submissions made to all of Reddit, try:

        .. code-block:: python

            for submission in reddit.subreddit("all").stream.submissions():
                print(submission)

        )r   r   Únewr   s     r   ÚsubmissionszSubredditStream.submissions:   s   € ô*   §¡× 2Ñ 2ÑE°nÑEÐEr   N)r   zmodels.SubredditÚreturnÚNone)r   r   r   zIterator[models.Comment])r   r   r   zIterator[models.Submission])Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r
   r
      s   „ Ù2ó#óKô@Fr   r
   N)r   Ú
__future__r   Útypingr   r   Úpraw.models.utilr   Úcollections.abcr   Úprawr   r
   r   r   r   ú<module>r$      s(   ðÙ (å "ç %å -áÝ(å÷@Fò @Fr   