diff --git a/sentry_sdk/integrations/httpx.py b/sentry_sdk/integrations/httpx.py index 64fd8371e5..9e3de63ed1 100644 --- a/sentry_sdk/integrations/httpx.py +++ b/sentry_sdk/integrations/httpx.py @@ -23,7 +23,7 @@ try: - from httpx import AsyncClient, Client, Request, Response # type: ignore + from httpx import AsyncClient, Client, Request, Response except ImportError: raise DidNotEnable("httpx is not installed") @@ -94,7 +94,7 @@ def send(self: "Client", request: "Request", **kwargs: "Any") -> "Response": return rv - Client.send = send + Client.send = send # type: ignore def _install_httpx_async_client() -> None: @@ -150,4 +150,4 @@ async def send( return rv - AsyncClient.send = send + AsyncClient.send = send # type: ignore