fix type hints

This commit is contained in:
Patrick Moessler 2023-06-12 12:20:40 +02:00
parent 8311416253
commit 38caa62d40

View file

@ -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