forked from goodboy/tractor
1
0
Fork 0

Fix type annotations

contexts
Tyler Goodlet 2019-01-12 15:32:41 -05:00
parent 41f2096e86
commit be20e1488b
1 changed files with 3 additions and 3 deletions

View File

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