From be20e1488b1107cd4c217c5c7c408d49b71dfde8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 12 Jan 2019 15:32:41 -0500 Subject: [PATCH] Fix type annotations --- tractor/_ipc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tractor/_ipc.py b/tractor/_ipc.py index 41b8061..2da8e12 100644 --- a/tractor/_ipc.py +++ b/tractor/_ipc.py @@ -216,14 +216,14 @@ class Context: self, channel: Channel, command_id: str, - ): + ) -> None: self.chan: Channel = channel self.cid: str = command_id - async def send_yield(self, data): + async def send_yield(self, data: Any) -> None: await self.chan.send({'yield': data, 'cid': self.cid}) - async def send_stop(self): + async def send_stop(self) -> None: await self.chan.send({'stop': True, 'cid': self.cid})