Typing transport

This commit is contained in:
Josh Wu
2023-09-07 16:48:55 +08:00
parent 9303f4fc5b
commit b312170d5f
19 changed files with 188 additions and 99 deletions

View File

@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
# -----------------------------------------------------------------------------
async def open_udp_transport(spec):
async def open_udp_transport(spec: str) -> Transport:
'''
Open a UDP transport.
The parameter string has this syntax: