Skip to content

Commit

Permalink
Sort praw.reddit.Reddit.submission arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Jan 6, 2022
1 parent 395435a commit 7b1c56c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion praw/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,8 +935,9 @@ def request(
[data["reason"], explanation, field]
) from exception

@_deprecate_args("id", "url")
def submission( # pylint: disable=invalid-name,redefined-builtin
self, id: Optional[str] = None, url: Optional[str] = None
self, id: Optional[str] = None, *, url: Optional[str] = None
) -> "praw.models.Submission":
"""Return a lazy instance of :class:`.Submission`.
Expand Down

0 comments on commit 7b1c56c

Please sign in to comment.