Skip to content

Commit f01b00d

Browse files
committed
ref(transport): Fix type errors in async transport
Fix type errors resulting from async override and missing type definition in the async transport. GH-4582
1 parent b0390e6 commit f01b00d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def __init__(self: Self, options: Dict[str, Any]) -> None:
576576
super().__init__(options)
577577
# Requires event loop at init time
578578
self._loop = asyncio.get_running_loop()
579-
self.background_tasks = set()
579+
self.background_tasks: set[asyncio.Task[None]] = set()
580580

581581
async def _send_envelope(self: Self, envelope: Envelope) -> None:
582582
_prepared_envelope = self._prepare_envelope(envelope)
@@ -614,7 +614,7 @@ async def _send_request(
614614
finally:
615615
response.close()
616616

617-
async def _request(
617+
async def _request( # type: ignore[override]
618618
self: Self,
619619
method: str,
620620
endpoint_type: EndpointType,

0 commit comments

Comments
 (0)