From d64c7d6d56a5a16861c0a72fff029947c24e8098 Mon Sep 17 00:00:00 2001 From: mhchia Date: Wed, 24 Jul 2019 21:28:14 +0800 Subject: [PATCH] Add the missing type for `port` --- examples/chat/chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/chat/chat.py b/examples/chat/chat.py index 0ac6e78..ea98598 100755 --- a/examples/chat/chat.py +++ b/examples/chat/chat.py @@ -23,6 +23,7 @@ async def read_data(stream): print("\x1b[32m %s\x1b[0m " % read_string, end="") +# FIXME(mhchia): Reconsider whether we should use a thread pool here. async def write_data(stream): loop = asyncio.get_event_loop() while True: @@ -85,6 +86,7 @@ def main(): "-p", "--port", default=8000, + type=int, help="source port number", ) parser.add_argument(