[Typing] - HTTPError doesn't have a request attribute
#2151
|
The try:
response = httpx.get("https://www.example.com")
response.raise_for_status()
except httpx.HTTPError as exc:
print(f"HTTP Exception for {exc.request.url} - {exc}")Mypy doesn't like this: |
Answered by
michaeloliverx
Apr 1, 2022
Replies: 2 comments 4 replies
|
Both child classes do have |
4 replies
Answer selected by
lovelydinosaur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed in #2158