summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Prewitt <nate.prewitt@gmail.com>2020-06-19 09:04:21 -0700
committerGitHub <noreply@github.com>2020-06-19 09:04:21 -0700
commit8149e9fe54c36951290f198e90d83c8a0498289c (patch)
treebe17609d102e97a0cdf68e31ea11495367243f88
parent1ca1c52e698b13d3d5cc0755a6450306d880b933 (diff)
parent9cae7be94f0aa35a26b42e1a34e26f874cd754da (diff)
downloadpython-requests-8149e9fe54c36951290f198e90d83c8a0498289c.tar.gz
Merge pull request #5505 from ollien/prepared-requests-docs-correction
Clarify that PreparedRequests should not be manually created
-rw-r--r--requests/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/requests/models.py b/requests/models.py
index ae6eb708..ec2edc20 100644
--- a/requests/models.py
+++ b/requests/models.py
@@ -273,7 +273,9 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
"""The fully mutable :class:`PreparedRequest <PreparedRequest>` object,
containing the exact bytes that will be sent to the server.
- Generated from either a :class:`Request <Request>` object or manually.
+ Instances are generated from a :class:`Request <Request>` object, and
+ should not be instantiated manually; doing so may produce undesirable
+ effects.
Usage::