From 40b633385b3ec5462d90042213bfb236c57ccbab Mon Sep 17 00:00:00 2001 From: mjsqu Date: Tue, 19 Dec 2023 05:16:42 +1300 Subject: [PATCH] docs: Fix broken requests documentation links (#2111) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix broken requests documentation links * Update rest.py * Update rest.py --------- Co-authored-by: Edgar Ramírez Mondragón <16805946+edgarrmondragon@users.noreply.github.com> --- singer_sdk/streams/rest.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/singer_sdk/streams/rest.py b/singer_sdk/streams/rest.py index 570508207..f8dbeadc9 100644 --- a/singer_sdk/streams/rest.py +++ b/singer_sdk/streams/rest.py @@ -140,7 +140,7 @@ def requests_session(self) -> requests.Session: The `requests.Session`_ object for HTTP requests. .. _requests.Session: - https://requests.readthedocs.io/en/latest/api/#request-sessions + https://requests.readthedocs.io/en/latest/api.html#requests.Session """ if not self._requests_session: self._requests_session = requests.Session() @@ -175,7 +175,7 @@ def validate_response(self, response: requests.Response) -> None: RetriableAPIError: If the request is retriable. .. _requests.Response: - https://requests.readthedocs.io/en/latest/api/#requests.Response + https://requests.readthedocs.io/en/latest/api.html#requests.Response """ if ( response.status_code in self.extra_retry_statuses @@ -329,9 +329,9 @@ def build_prepared_request( A `requests.PreparedRequest`_ object. .. _requests.PreparedRequest: - https://requests.readthedocs.io/en/latest/api/#requests.PreparedRequest + https://requests.readthedocs.io/en/latest/api.html#requests.PreparedRequest .. _requests.Request: - https://requests.readthedocs.io/en/latest/api/#requests.Request + https://requests.readthedocs.io/en/latest/api.html#requests.Request """ request = requests.Request(*args, **kwargs) self.requests_session.auth = self.authenticator @@ -589,7 +589,7 @@ def parse_response(self, response: requests.Response) -> t.Iterable[dict]: One item for every item found in the response. .. _requests.Response: - https://requests.readthedocs.io/en/latest/api/#requests.Response + https://requests.readthedocs.io/en/latest/api.html#requests.Response """ yield from extract_jsonpath(self.records_jsonpath, input=response.json())