From 7b9c78ca040379c7fcb4bac18796a333e2225b60 Mon Sep 17 00:00:00 2001 From: Nehha_D Date: Sun, 4 Jan 2026 21:08:36 +0530 Subject: [PATCH] Clarifying path_url property docstring --- src/requests/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/requests/models.py b/src/requests/models.py index c4b25fa079..85dbb11370 100644 --- a/src/requests/models.py +++ b/src/requests/models.py @@ -84,7 +84,10 @@ class RequestEncodingMixin: @property def path_url(self): - """Build the path URL to use.""" + """ + Build the URL path by extracting the path and query from the full URL, + excluding the scheme and domain. Defaults to "/" if no path exists. + """ url = []