Skip to content

Commit 9b59795

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
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.10
2626

2727
- repo: https://github.com/LilSpazJoekp/docstrfmt
2828
hooks:
@@ -38,7 +38,7 @@ repos:
3838
hooks:
3939
- id: toml-sort-fix
4040
files: ^(.*\.toml)$
41-
rev: v0.24.3
41+
rev: v0.24.4
4242

4343
- repo: https://github.com/pre-commit/pre-commit-hooks
4444
rev: v6.0.0

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)