Skip to content

Commit e25fbc8

Browse files
committed
Merge pull request psf#2135 from dpursehouse/fix-meth-and-class-directives
Docs: Fix :class: and :meth: directives
2 parents d21916c + 2a6303e commit e25fbc8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/user/advanced.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ request, and then the request's headers::
8080
Prepared Requests
8181
-----------------
8282

83-
Whenever you receive a :class:`Response <requests.models.Response>` object
83+
Whenever you receive a :class:`Response <requests.Response>` object
8484
from an API call or a Session call, the ``request`` attribute is actually the
8585
``PreparedRequest`` that was used. In some cases you may wish to do some extra
8686
work to the body or headers (or anything else really) before sending a
@@ -117,7 +117,7 @@ However, the above code will lose some of the advantages of having a Requests
117117
:class:`Session <requests.Session>` object. In particular,
118118
:class:`Session <requests.Session>`-level state such as cookies will
119119
not get applied to your request. To get a
120-
:class:`PreparedRequest <requests.models.PreparedRequest>` with that state
120+
:class:`PreparedRequest <requests.PreparedRequest>` with that state
121121
applied, replace the call to :meth:`Request.prepare()
122122
<requests.Request.prepare>` with a call to
123123
:meth:`Session.prepare_request() <requests.Session.prepare_request>`, like this::

docs/user/quickstart.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,10 @@ HEAD.
367367

368368
We can use the ``history`` property of the Response object to track redirection.
369369

370-
The :meth:`Response.history` list contains the :class:`Request` objects that
371-
were created in order to complete the request. The list is sorted from the
372-
oldest to the most recent request.
370+
The :meth:`Response.history <requests.Response.history>` list contains the
371+
:class:`Request <requests.Request>` objects that were created in order to
372+
complete the request. The list is sorted from the oldest to the most recent
373+
request.
373374

374375
For example, GitHub redirects all HTTP requests to HTTPS::
375376

0 commit comments

Comments
 (0)