Skip to content

Commit b81444d

Browse files
committed
Appease CI
1 parent 09fe32f commit b81444d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

newsfragments/3183.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update type hints for `trio.run_process` and `trio.lowlevel.open_process`.

src/trio/_subprocess.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,8 @@ async def killer() -> None:
802802

803803

804804
class GeneralProcessArgs(TypedDict, total=False):
805+
"""Arguments shared between all runs."""
806+
805807
stdout: int | HasFileno | None
806808
stderr: int | HasFileno | None
807809
close_fds: bool
@@ -814,6 +816,8 @@ class GeneralProcessArgs(TypedDict, total=False):
814816
if sys.platform == "win32":
815817

816818
class WindowsProcessArgs(GeneralProcessArgs, total=False):
819+
"""Arguments shared between all Windows runs."""
820+
817821
shell: bool
818822
startupinfo: subprocess.STARTUPINFO | None
819823
creationflags: int
@@ -1086,6 +1090,8 @@ async def my_deliver_cancel(process):
10861090
# readers (?)
10871091

10881092
class UnixProcessArgs3_9(GeneralProcessArgs, total=False):
1093+
"""Arguments shared between all Unix runs."""
1094+
10891095
preexec_fn: Callable[[], object] | None
10901096
restore_signals: bool
10911097
start_new_session: bool
@@ -1098,12 +1104,18 @@ class UnixProcessArgs3_9(GeneralProcessArgs, total=False):
10981104
umask: int
10991105

11001106
class UnixProcessArgs3_10(UnixProcessArgs3_9, total=False):
1107+
"""Arguments shared between all Unix runs on 3.10+."""
1108+
11011109
pipesize: int
11021110

11031111
class UnixProcessArgs3_11(UnixProcessArgs3_10, total=False):
1112+
"""Arguments shared between all Unix runs on 3.11+."""
1113+
11041114
process_group: int
11051115

11061116
class UnixRunProcessMixin(TypedDict, total=False):
1117+
"""Arguments unique to run_process on Unix."""
1118+
11071119
task_status: TaskStatus[Process]
11081120
capture_stdout: bool
11091121
capture_stderr: bool

0 commit comments

Comments
 (0)