Skip to content

Commit e49c32a

Browse files
LilSpazJoekpgithub-actions[bot]
authored andcommitted
Update pre-commit hooks
1 parent 0e3c1bd commit e49c32a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: ruff
2323
args: [ --exit-non-zero-on-fix, --fix ]
2424
files: ^(praw/.*.py)$
25-
rev: v0.15.1
25+
rev: v0.15.7
2626

2727
- repo: https://github.com/LilSpazJoekp/docstrfmt
2828
hooks:

praw/models/reddit/submission.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,8 @@ def _fetch(self) -> None:
715715

716716
submission_data = submission_listing["data"]["children"][0]["data"]
717717
submission = type(self)(self._reddit, _data=submission_data)
718-
delattr(submission, "comment_limit")
719-
delattr(submission, "comment_sort")
718+
del submission.comment_limit
719+
del submission.comment_sort
720720
submission._comments = CommentForest(self)
721721

722722
self.__dict__.update(submission.__dict__)

0 commit comments

Comments
 (0)