Skip to content

Commit

Permalink
Sort praw.models.user.User.me arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Feb 1, 2022
1 parent 2a38bba commit 110745c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion praw/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from ..const import API_PATH
from ..exceptions import ReadOnlyException
from ..models import Preferences
from ..util import _deprecate_args
from ..util.cache import cachedproperty
from .base import PRAWBase
from .listing.generator import ListingGenerator
Expand Down Expand Up @@ -128,8 +129,9 @@ def karma(self) -> Dict["praw.models.Subreddit", Dict[str, int]]:
karma_map[subreddit] = row
return karma_map

@_deprecate_args("use_cache")
def me(
self, use_cache: bool = True
self, *, use_cache: bool = True
) -> Optional["praw.models.Redditor"]: # pylint: disable=invalid-name
"""Return a :class:`.Redditor` instance for the authenticated user.
Expand Down

0 comments on commit 110745c

Please sign in to comment.