def get_data(identity: int) -> JSON:
with httpx.Client("https://blabla.xyz") as client:
response = client.get(f"/id={identity}")
return response.json()
Let's say I have that code above at the moment. If I start wrapping it in try/except, do I need to type hint the exceptions/errors aside from JSON?
Please ping on reply