Skip to content

Commit 82c0094

Browse files
BYKclaude
andcommitted
fix: Suppress mypy await type error in AsyncHttpTransport._request
The base class _make_pool returns a union of sync and async pool types, so mypy sees _pool.request() as possibly returning a non-awaitable. Add type: ignore[misc] since within AsyncHttpTransport the pool is always an async type. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4f8a00c commit 82c0094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ async def _request( # type: ignore[override,unused-ignore]
825825
body: "Any",
826826
headers: "Mapping[str, str]",
827827
) -> "httpcore.Response":
828-
return await self._pool.request(
828+
return await self._pool.request( # type: ignore[misc,unused-ignore]
829829
method,
830830
self._auth.get_api_url(endpoint_type),
831831
content=body,

0 commit comments

Comments
 (0)