Merge pull request #5505 from ollien/prepared-requests-docs-correction

Clarify that PreparedRequests should not be manually created
This commit is contained in:
Nate Prewitt
2020-06-19 09:04:21 -07:00
committed by GitHub
+3 -1
View File
@@ -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::