From 80b26eeeb74a3c5b0dafe006eb074fa504fa0484 Mon Sep 17 00:00:00 2001 From: LilSpazJoekp <15524072+LilSpazJoekp@users.noreply.github.com> Date: Sun, 6 Feb 2022 18:10:55 -0600 Subject: [PATCH] Sort praw.models.reddit.more.MoreComments.comments arguments --- praw/models/reddit/more.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/praw/models/reddit/more.py b/praw/models/reddit/more.py index 953b499d8..7a19561f4 100644 --- a/praw/models/reddit/more.py +++ b/praw/models/reddit/more.py @@ -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 @@ -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"