From: Tom Christie Date: Tue, 16 Nov 2021 11:47:46 +0000 (+0000) Subject: Fix response.url annotation (#1940) X-Git-Tag: 0.21.1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4882e980494aa72032bef773eb15462af25dcd9a;p=thirdparty%2Fhttpx.git Fix response.url annotation (#1940) --- 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. """