From 38caa62d407cd35d44df654adad4748cc6c33487 Mon Sep 17 00:00:00 2001 From: Patrick Moessler Date: Mon, 12 Jun 2023 12:20:40 +0200 Subject: [PATCH] fix type hints --- src/teams_ctrl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/teams_ctrl.py b/src/teams_ctrl.py index c461626..3a480cb 100644 --- a/src/teams_ctrl.py +++ b/src/teams_ctrl.py @@ -264,13 +264,13 @@ class TeamsCtrl: while not self.loop.is_closed(): await self.current_state.process() - def gather_all(self): + def gather_all(self) -> asyncio.Future[tuple[None, None, None]]: return asyncio.gather( self.process_serial(), self.process_ws(), self.process_statemachine() ) -async def amain(): +async def amain() -> None: loop = asyncio.get_event_loop() serial = await serial_asyncio.open_serial_connection( loop=loop, url=args.port, baudrate=115200