From 25477fed611090edeaa2aaa32aa32e841e593791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 28 Nov 2021 13:33:25 +0100 Subject: [PATCH] Refactor controller constructor --- src/runboat/controller.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/runboat/controller.py b/src/runboat/controller.py index caf44c2..11a212a 100644 --- a/src/runboat/controller.py +++ b/src/runboat/controller.py @@ -30,14 +30,8 @@ class Controller: - The 'undeployer' undeploys old stopped deployments. """ - db: BuildsDb - _tasks: list[asyncio.Task[None]] - _wakeup_initializer: asyncio.Event - _wakeup_stopper: asyncio.Event - _wakeup_undeployer: asyncio.Event - def __init__(self) -> None: - self._tasks = [] + self._tasks: list[asyncio.Task[None]] = [] self._wakeup_initializer = asyncio.Event() self._wakeup_stopper = asyncio.Event() self._wakeup_undeployer = asyncio.Event()