You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the underlying calls to Python's native Popen and anyio.create_process both support subprocess.DEVNULL: int = -3 for stderr, which allows the stream to be ignored.
By updating the type hint, we can easily support int for errlog. This change would benefit downstream projects and resolve issues for CLI users. Furthermore, I believe ignoring errlog is a better default than piping them into stderr, as the current behaviour can create unexpected side-effects that are difficult to trace.
I'll take this. The fix is straightforward — updating the type hints on stdio_client() and _create_platform_compatible_process() to accept int (for subprocess.DEVNULL, subprocess.PIPE, etc.) in addition to TextIO. Will have a PR up shortly.
Activity
[-]More Control over stderr in stdio client[/-][+]More control over stderr in stdio client[/+]SamSi0322 commentedon Apr 10, 2026
I'll take this. The fix is straightforward — updating the type hints on
stdio_client()and_create_platform_compatible_process()to acceptint(forsubprocess.DEVNULL,subprocess.PIPE, etc.) in addition toTextIO. Will have a PR up shortly.