Skip to content

Commit c61eb02

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

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

585585
def _get_header_value(self: Self, response: Any, header: str) -> Optional[str]:

0 commit comments

Comments
 (0)