Type annot the proc from `trio.lowlevel.open_process()`

runtime_to_msgspec
Tyler Goodlet 2024-04-30 12:59:38 -04:00
parent 338395346d
commit 54530dcf94
1 changed files with 2 additions and 3 deletions

View File

@ -451,10 +451,9 @@ async def trio_proc(
proc: trio.Process|None = None proc: trio.Process|None = None
try: try:
try: try:
# TODO: needs ``trio_typing`` patch? proc: trio.Process = await trio.lowlevel.open_process(spawn_cmd)
proc = await trio.lowlevel.open_process(spawn_cmd)
log.runtime( log.runtime(
'Started new sub-proc\n' 'Started new child\n'
f'|_{proc}\n' f'|_{proc}\n'
) )