mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
subprocess: use narrower types for TimeoutExpired.std* (#8886)
See https://github.com/python/cpython/pull/97685 The union type should be acceptable given https://github.com/python/cpython/issues/87597#issuecomment-1207402415. In general I'd like us to be able to type this, since these being bytes can be surprising if you pass text=True, but we'll see what mypy_primer says
This commit is contained in:
@@ -1828,8 +1828,8 @@ class TimeoutExpired(SubprocessError):
|
||||
timeout: float
|
||||
# morally: _TXT | None
|
||||
output: Any
|
||||
stdout: Any
|
||||
stderr: Any
|
||||
stdout: bytes | None
|
||||
stderr: bytes | None
|
||||
|
||||
class CalledProcessError(SubprocessError):
|
||||
returncode: int
|
||||
|
||||
Reference in New Issue
Block a user