Skip to content

Commit

Permalink
Sort praw.models.reddit.rules.RuleModeration.update arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Jan 8, 2022
1 parent 8481ea1 commit f24702c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion praw/models/reddit/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from ...const import API_PATH
from ...exceptions import ClientException
from ...util.cache import cachedproperty
from ...util import _deprecate_args, cachedproperty
from .base import RedditBase

if TYPE_CHECKING: # pragma: no cover
Expand Down Expand Up @@ -292,8 +292,10 @@ def delete(self):
}
self.rule._reddit.post(API_PATH["remove_subreddit_rule"], data=data)

@_deprecate_args("description", "kind", "short_name", "violation_reason")
def update(
self,
*,
description: Optional[str] = None,
kind: Optional[str] = None,
short_name: Optional[str] = None,
Expand Down

0 comments on commit f24702c

Please sign in to comment.