@@ -224,7 +224,7 @@ def create(
224224 }
225225 return self .subreddit ._reddit .post (API_PATH ["modmail_conversations" ], data = data )
226226
227- def subreddits (self ) -> Generator [praw .models .Subreddit , None , None ]:
227+ def subreddits (self ) -> Iterator [praw .models .Subreddit ]:
228228 """Yield subreddits using the new modmail that the user moderates.
229229
230230 For example:
@@ -284,7 +284,7 @@ def __init__(self, subreddit: praw.models.Subreddit) -> None:
284284 """
285285 self .subreddit = subreddit
286286
287- def __iter__ (self ) -> Generator [praw .models .Subreddit , None , None ]:
287+ def __iter__ (self ) -> Iterator [praw .models .Subreddit ]:
288288 """Iterate through the special :class:`.Subreddit`'s filters.
289289
290290 This method should be invoked as:
@@ -597,7 +597,7 @@ def __init__(self, subreddit: praw.models.Subreddit) -> None:
597597 """
598598 self .subreddit = subreddit
599599
600- def __iter__ (self ) -> Generator [ None , None , None ]:
600+ def __iter__ (self ) -> Iterator [ None ]:
601601 """Abstract method to return flair templates."""
602602 raise NotImplementedError
603603
@@ -1112,7 +1112,7 @@ def __init__(self, subreddit: praw.models.Subreddit) -> None:
11121112
11131113 def edited (
11141114 self , * , only : str | None = None , ** stream_options : Any
1115- ) -> Generator [praw .models .Comment | praw .models .Submission , None , None ]:
1115+ ) -> Iterator [praw .models .Comment | praw .models .Submission ]:
11161116 """Yield edited comments and submissions as they become available.
11171117
11181118 :param only: If specified, one of ``"comments"`` or ``"submissions"`` to yield
@@ -1137,7 +1137,7 @@ def log(
11371137 action : str | None = None ,
11381138 mod : str | praw .models .Redditor | None = None ,
11391139 ** stream_options : Any ,
1140- ) -> Generator [praw .models .ModAction , None , None ]:
1140+ ) -> Iterator [praw .models .ModAction ]:
11411141 """Yield moderator log entries as they become available.
11421142
11431143 :param action: If given, only return log entries for the specified action.
@@ -1168,7 +1168,7 @@ def modmail_conversations(
11681168 sort : str | None = None ,
11691169 state : str | None = None ,
11701170 ** stream_options : Any ,
1171- ) -> Generator [ModmailConversation , None , None ]:
1171+ ) -> Iterator [ModmailConversation ]:
11721172 """Yield new-modmail conversations as they become available.
11731173
11741174 :param other_subreddits: A list of :class:`.Subreddit` instances for which to
@@ -1206,7 +1206,7 @@ def modmail_conversations(
12061206
12071207 def modqueue (
12081208 self , * , only : str | None = None , ** stream_options : Any
1209- ) -> Generator [praw .models .Comment | praw .models .Submission , None , None ]:
1209+ ) -> Iterator [praw .models .Comment | praw .models .Submission ]:
12101210 r"""Yield :class:`.Comment`\ s and :class:`.Submission`\ s in the modqueue as they become available.
12111211
12121212 :param only: If specified, one of ``"comments"`` or ``"submissions"`` to yield
@@ -1226,7 +1226,7 @@ def modqueue(
12261226
12271227 def reports (
12281228 self , * , only : str | None = None , ** stream_options : Any
1229- ) -> Generator [praw .models .Comment | praw .models .Submission , None , None ]:
1229+ ) -> Iterator [praw .models .Comment | praw .models .Submission ]:
12301230 r"""Yield reported :class:`.Comment`\ s and :class:`.Submission`\ s as they become available.
12311231
12321232 :param only: If specified, one of ``"comments"`` or ``"submissions"`` to yield
@@ -1246,7 +1246,7 @@ def reports(
12461246
12471247 def spam (
12481248 self , * , only : str | None = None , ** stream_options : Any
1249- ) -> Generator [praw .models .Comment | praw .models .Submission , None , None ]:
1249+ ) -> Iterator [praw .models .Comment | praw .models .Submission ]:
12501250 r"""Yield spam :class:`.Comment`\ s and :class:`.Submission`\ s as they become available.
12511251
12521252 :param only: If specified, one of ``"comments"`` or ``"submissions"`` to yield
@@ -1264,7 +1264,7 @@ def spam(
12641264 """
12651265 return stream_generator (self .subreddit .mod .spam , only = only , ** stream_options )
12661266
1267- def unmoderated (self , ** stream_options : Any ) -> Generator [praw .models .Submission , None , None ]:
1267+ def unmoderated (self , ** stream_options : Any ) -> Iterator [praw .models .Submission ]:
12681268 r"""Yield unmoderated :class:`.Submission`\ s as they become available.
12691269
12701270 Keyword arguments are passed to :func:`.stream_generator`.
@@ -1413,7 +1413,7 @@ def __init__(self, subreddit: praw.models.Subreddit) -> None:
14131413 """
14141414 self .subreddit = subreddit
14151415
1416- def comments (self , ** stream_options : Any ) -> Generator [praw .models .Comment , None , None ]:
1416+ def comments (self , ** stream_options : Any ) -> Iterator [praw .models .Comment ]:
14171417 """Yield new comments as they become available.
14181418
14191419 Comments are yielded oldest first. Up to 100 historical comments will initially
@@ -1445,7 +1445,7 @@ def comments(self, **stream_options: Any) -> Generator[praw.models.Comment, None
14451445 """
14461446 return stream_generator (self .subreddit .comments , ** stream_options )
14471447
1448- def submissions (self , ** stream_options : Any ) -> Generator [praw .models .Submission , None , None ]:
1448+ def submissions (self , ** stream_options : Any ) -> Iterator [praw .models .Submission ]:
14491449 r"""Yield new :class:`.Submission`\ s as they become available.
14501450
14511451 Submissions are yielded oldest first. Up to 100 historical submissions will
@@ -1925,7 +1925,7 @@ def __init__(self, subreddit: praw.models.Subreddit) -> None:
19251925 self .contributor = SubredditRelationship (subreddit , "wikicontributor" )
19261926 self .subreddit = subreddit
19271927
1928- def __iter__ (self ) -> Generator [WikiPage , None , None ]:
1928+ def __iter__ (self ) -> Iterator [WikiPage ]:
19291929 """Iterate through the pages of the wiki.
19301930
19311931 This method is to be used to discover all wikipages for a subreddit:
@@ -3661,7 +3661,7 @@ class SubredditLinkFlairTemplates(SubredditFlairTemplates):
36613661
36623662 def __iter__ (
36633663 self ,
3664- ) -> Generator [dict [str , str | int | bool | list [dict [str , str ]]], None , None ]:
3664+ ) -> Iterator [dict [str , str | int | bool | list [dict [str , str ]]]]:
36653665 """Iterate through the link flair templates as a moderator.
36663666
36673667 For example:
@@ -3758,7 +3758,7 @@ def reorder(self, flair_list: list[str]) -> None:
37583758
37593759 def user_selectable (
37603760 self ,
3761- ) -> Generator [dict [str , str | bool ], None , None ]:
3761+ ) -> Iterator [dict [str , str | bool ]]:
37623762 """Iterate through the link flair templates as a regular user.
37633763
37643764 For example:
@@ -3778,7 +3778,7 @@ class SubredditRedditorFlairTemplates(SubredditFlairTemplates):
37783778
37793779 def __iter__ (
37803780 self ,
3781- ) -> Generator [dict [str , str | int | bool | list [dict [str , str ]]], None , None ]:
3781+ ) -> Iterator [dict [str , str | int | bool | list [dict [str , str ]]]]:
37823782 """Iterate through the user flair templates.
37833783
37843784 For example:
0 commit comments