Fix response.url annotation (#1940)

This commit is contained in:
Tom Christie 2021-11-16 11:47:46 +00:00 committed by GitHub
parent b4f60694eb
commit 4882e98049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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.
"""