diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 59e04b893..46743e028 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: files: ^(.*\.toml)$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.8 hooks: - id: ruff args: [ --exit-non-zero-on-fix, --fix ] @@ -51,9 +51,9 @@ repos: - repo: https://github.com/psf/black hooks: - id: black - rev: 23.11.0 + rev: 23.12.0 - repo: https://github.com/LilSpazJoekp/docstrfmt hooks: - id: docstrfmt - rev: v1.5.1 + rev: v1.6.1 diff --git a/praw/models/reddit/subreddit.py b/praw/models/reddit/subreddit.py index 0a30de475..88f2faf57 100644 --- a/praw/models/reddit/subreddit.py +++ b/praw/models/reddit/subreddit.py @@ -1891,7 +1891,6 @@ def upload(self, *, image_path: str, name: str) -> dict[str, str]: ``img_src``. :raises: ``prawcore.TooLarge`` if the overall request body is too large. - :raises: :class:`.RedditAPIException` if there are other issues with the uploaded image. Unfortunately the exception info might not be very specific, so try through the website with the same image to see what the problem @@ -1914,7 +1913,6 @@ def upload_banner(self, image_path: str): :param image_path: A path to a jpeg or png image. :raises: ``prawcore.TooLarge`` if the overall request body is too large. - :raises: :class:`.RedditAPIException` if there are other issues with the uploaded image. Unfortunately the exception info might not be very specific, so try through the website with the same image to see what the problem @@ -1947,7 +1945,6 @@ def upload_banner_additional_image( ``"left"``). :raises: ``prawcore.TooLarge`` if the overall request body is too large. - :raises: :class:`.RedditAPIException` if there are other issues with the uploaded image. Unfortunately the exception info might not be very specific, so try through the website with the same image to see what the problem @@ -1985,7 +1982,6 @@ def upload_banner_hover_image(self, image_path: str): Fails if the :class:`.Subreddit` does not have an additional image defined. :raises: ``prawcore.TooLarge`` if the overall request body is too large. - :raises: :class:`.RedditAPIException` if there are other issues with the uploaded image. Unfortunately the exception info might not be very specific, so try through the website with the same image to see what the problem @@ -2014,7 +2010,6 @@ def upload_header(self, image_path: str) -> dict[str, str]: ``img_src``. :raises: ``prawcore.TooLarge`` if the overall request body is too large. - :raises: :class:`.RedditAPIException` if there are other issues with the uploaded image. Unfortunately the exception info might not be very specific, so try through the website with the same image to see what the problem @@ -2044,7 +2039,6 @@ def upload_mobile_banner(self, image_path: str): Fails if the :class:`.Subreddit` does not have an additional image defined. :raises: ``prawcore.TooLarge`` if the overall request body is too large. - :raises: :class:`.RedditAPIException` if there are other issues with the uploaded image. Unfortunately the exception info might not be very specific, so try through the website with the same image to see what the problem @@ -2066,7 +2060,6 @@ def upload_mobile_header(self, image_path: str) -> dict[str, str]: ``img_src``. :raises: ``prawcore.TooLarge`` if the overall request body is too large. - :raises: :class:`.RedditAPIException` if there are other issues with the uploaded image. Unfortunately the exception info might not be very specific, so try through the website with the same image to see what the problem @@ -2090,7 +2083,6 @@ def upload_mobile_icon(self, image_path: str) -> dict[str, str]: ``img_src``. :raises: ``prawcore.TooLarge`` if the overall request body is too large. - :raises: :class:`.RedditAPIException` if there are other issues with the uploaded image. Unfortunately the exception info might not be very specific, so try through the website with the same image to see what the problem diff --git a/praw/models/user.py b/praw/models/user.py index 33e13444b..46dfdb7f6 100644 --- a/praw/models/user.py +++ b/praw/models/user.py @@ -236,7 +236,6 @@ def pin( :returns: The pinned submission. :raises: ``prawcore.BadRequest`` when pinning a removed or deleted submission. - :raises: ``prawcore.Forbidden`` when pinning a submission the authenticated user is not the author of.