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

@@ -32,7 +32,7 @@ logger = logging.getLogger(__name__)
# -----------------------------------------------------------------------------
async def open_pty_transport(spec):
async def open_pty_transport(spec: str | None) -> Transport:
'''
Open a PTY transport.
The parameter string may be empty, or a path name where a symbolic link