Skip to content

Commit

Permalink
Sort praw.models.reddit.more.MoreComments.comments arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Feb 7, 2022
1 parent 66176a6 commit 80b26ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion praw/models/reddit/more.py
Expand Up @@ -2,6 +2,7 @@
from typing import TYPE_CHECKING, Any, Dict, List, Union

from ...const import API_PATH
from ...util import _deprecate_args
from ..base import PRAWBase

if TYPE_CHECKING: # pragma: no cover
Expand Down Expand Up @@ -60,7 +61,8 @@ def _load_comment(self, comment_id):
assert len(comments.children) == 1, "Please file a bug report with PRAW."
return comments.children[0]

def comments(self, update: bool = True) -> List["praw.models.Comment"]:
@_deprecate_args("update")
def comments(self, *, update: bool = True) -> List["praw.models.Comment"]:
"""Fetch and return the comments for a single :class:`.MoreComments` object."""
if self._comments is None:
if self.count == 0: # Handle "continue this thread"
Expand Down

0 comments on commit 80b26ee

Please sign in to comment.