Skip to content

Commit 7ada4b3

Browse files
committed
ref(worker): add proper type annotation to worker task list
Add proper type annotation to worker task list to fix linting problems GH-4581
1 parent 5488606 commit 7ada4b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __init__(self, queue_size: int = DEFAULT_QUEUE_SIZE) -> None:
182182
self._task_for_pid: Optional[int] = None
183183
self._loop: Optional[asyncio.AbstractEventLoop] = None
184184
# Track active callback tasks so they have a strong reference and can be cancelled on kill
185-
self._active_tasks: set[asyncio.Task] = set()
185+
self._active_tasks: set[asyncio.Task[None]] = set()
186186

187187
@property
188188
def is_alive(self) -> bool:

0 commit comments

Comments
 (0)