Skip to content

Commit

Permalink
Sort praw.models.inbox.Inbox.unread arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Feb 6, 2022
1 parent de709c9 commit 49ce409
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions praw/models/inbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import TYPE_CHECKING, Dict, Iterator, List, Union

from ..const import API_PATH
from ..util import _deprecate_args
from .base import PRAWBase
from .listing.generator import ListingGenerator
from .util import stream_generator
Expand Down Expand Up @@ -305,8 +306,10 @@ def uncollapse(self, items: List["praw.models.Message"]):
self._reddit.post(API_PATH["uncollapse"], data=data)
items = items[25:]

@_deprecate_args("mark_read")
def unread(
self,
*,
mark_read: bool = False,
**generator_kwargs: Union[str, int, Dict[str, str]]
) -> Iterator[Union["praw.models.Comment", "praw.models.Message"]]:
Expand Down

0 comments on commit 49ce409

Please sign in to comment.