Skip to content

Commit

Permalink
Fix response.url annotation (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Nov 16, 2021
1 parent b4f6069 commit 4882e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_models.py
Expand Up @@ -1302,7 +1302,7 @@ def reason_phrase(self) -> str:
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.
"""
Expand Down

0 comments on commit 4882e98

Please sign in to comment.