Skip to content

Commit

Permalink
Sort praw.reddit.Reddit._prepare_prawcore arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Jan 29, 2022
1 parent 7b98efe commit 9c573af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions praw/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ def request(self, *args, **kwargs):

self._check_for_update()
self._prepare_objector()
self._prepare_prawcore(requestor_class, requestor_kwargs)
self._prepare_prawcore(
requestor_class=requestor_class, requestor_kwargs=requestor_kwargs
)

self.auth = models.Auth(self, None)
"""An instance of :class:`.Auth`.
Expand Down Expand Up @@ -520,7 +522,7 @@ def _prepare_objector(self):
}
self._objector = Objector(self, mappings)

def _prepare_prawcore(self, requestor_class=None, requestor_kwargs=None):
def _prepare_prawcore(self, *, requestor_class=None, requestor_kwargs=None):
requestor_class = requestor_class or Requestor
requestor_kwargs = requestor_kwargs or {}

Expand Down

0 comments on commit 9c573af

Please sign in to comment.