Skip to content

Commit a5d4432

Browse files
committed
ref(transport): Add missing async transport loop type annotation
GH-4601
1 parent 855212b commit a5d4432

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
@@ -575,7 +575,7 @@ class AsyncHttpTransport(HttpTransportCore):
575575
def __init__(self: Self, options: Dict[str, Any]) -> None:
576576
super().__init__(options)
577577
# Requires event loop at init time
578-
self._loop = asyncio.get_running_loop()
578+
self.loop: asyncio.AbstractEventLoop = asyncio.get_running_loop()
579579
self.background_tasks: set[asyncio.Task[None]] = set()
580580

581581
async def _send_envelope(self: Self, envelope: Envelope) -> None:

0 commit comments

Comments
 (0)