From 4882e980494aa72032bef773eb15462af25dcd9a Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 16 Nov 2021 11:47:46 +0000 Subject: [PATCH] Fix response.url annotation (#1940) --- httpx/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpx/_models.py b/httpx/_models.py index 925f329d..f84bb7d8 100644 --- a/httpx/_models.py +++ b/httpx/_models.py @@ -1302,7 +1302,7 @@ class Response: return codes.get_reason_phrase(self.status_code) @property - def url(self) -> typing.Optional[URL]: + def url(self) -> URL: """ Returns the URL for which the request was made. """