typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

subprocess.Popen: overloads for set stdin/stdout/stderr attributes?

Open blueyed opened this issue 5 years ago • 4 comments

When passing in stdin, stdout, or stderr those attributes are also set on the Popen instances, i.e. not Optional/None.

Given the many overloads there are already (https://github.com/python/typeshed/blob/2d82e1fb8bcedc75be3ae91f911472931c92490a/stdlib/3/subprocess.pyi#L844-L1156) and that this would (AFAIK) have to multiply them, this might not really be feasible/practical though?

Ref: https://github.com/python/typeshed/commit/76b295a66919dcb3719e73011747dbcbc321c1d3 made them Optional by default.

blueyed avatar Mar 07 '20 00:03 blueyed