diff options
author | Nate Prewitt <nate.prewitt@gmail.com> | 2020-06-19 09:04:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 09:04:21 -0700 |
commit | 8149e9fe54c36951290f198e90d83c8a0498289c (patch) | |
tree | be17609d102e97a0cdf68e31ea11495367243f88 | |
parent | 1ca1c52e698b13d3d5cc0755a6450306d880b933 (diff) | |
parent | 9cae7be94f0aa35a26b42e1a34e26f874cd754da (diff) | |
download | python-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.py | 4 |
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:: |