]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix response.url annotation (#1940)
authorTom Christie <tom@tomchristie.com>
Tue, 16 Nov 2021 11:47:46 +0000 (11:47 +0000)
committerGitHub <noreply@github.com>
Tue, 16 Nov 2021 11:47:46 +0000 (11:47 +0000)
httpx/_models.py

index 925f329da0bd32efd26e62205b57a91d17942077..f84bb7d868783b7ca9721f4333c1b25012f01c0c 100644 (file)
@@ -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.
         """