From 9cae7be94f0aa35a26b42e1a34e26f874cd754da Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Thu, 18 Jun 2020 22:06:23 -0400 Subject: [PATCH] Clarify that PreparedRequests should not be manually created Closes #5504 --- requests/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ` object, containing the exact bytes that will be sent to the server. - Generated from either a :class:`Request ` object or manually. + Instances are generated from a :class:`Request ` object, and + should not be instantiated manually; doing so may produce undesirable + effects. Usage::