[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: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Both child classes do have |
Beta Was this translation helpful? Give feedback.
-
|
Fixed in #2158 |
Beta Was this translation helpful? Give feedback.
Fixed in #2158