add typing to transport

This commit is contained in:
Chih Cheng Liang
2019-08-02 16:32:33 +08:00
parent a20c172480
commit 29fbb9e40a
5 changed files with 125 additions and 71 deletions

View File

@ -0,0 +1,6 @@
from asyncio import StreamReader, StreamWriter
from typing import NewType, Callable
THandler = Callable[[StreamReader, StreamWriter], None]