Skip to content

Commit

Permalink
docs: Fix broken requests documentation links (#2111)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
mjsqu and edgarrmondragon committed Dec 18, 2023
1 parent 544f61f commit 40b6333
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions singer_sdk/streams/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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())

Expand Down

0 comments on commit 40b6333

Please sign in to comment.