Commit 117088f
committed
internal/subprocess(refactor[typing]): Align preexec_fn with typeshed
why: Use Callable[[], object] to match Python's official typeshed,
accepting functions that return values (which subprocess ignores).
what:
- Change preexec_fn return type from None to object
- Update both subprocess.py and run.py1 parent 0cd6a73 commit 117088f
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments